Skip to content

Commit

Permalink
Added metadata for DevContainer build.
Browse files Browse the repository at this point in the history
  • Loading branch information
vhadianto committed Feb 8, 2024
1 parent d83ce76 commit d019d57
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
9 changes: 9 additions & 0 deletions .devcontainer/build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
FROM mcr.microsoft.com/devcontainers/go:1-1.21-bullseye

ENV DEVCONTAINER_VERSION

LABEL org.opencontainers.image.ref.name="flowpipe-devcontainer"
LABEL org.opencontainers.image.version=${DEVCONTAINER_VERSION}
LABEL org.opencontainers.image.url="https://flowpipe.io"
LABEL org.opencontainers.image.authors="Turbot HQ, Inc"
LABEL org.opencontainers.image.source="https://github.com/turbot/flowpipe"
LABEL org.opencontainers.image.description="Development container for flowpipe"

RUN apt update \
&& apt install default-jre default-jdk postgresql mariadb-server -y \
&& cd /tmp \
Expand Down
15 changes: 3 additions & 12 deletions .devcontainer/build/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
Don't push this the devcontainer Docker image to GitHub yet.
# DevContainer for Flowpipe Development

Build this locally and it will work.
## Introduction

## Troubleshooting
This repository contains the configuration for a development container for Flowpipe. See [Development Containers](https://containers.dev/).

https://stackoverflow.com/questions/74707530/docker-buildx-fails-to-show-result-in-image-list


```
# build both images
docker buildx build --platform linux/arm64,linux/amd64 .
# load just one platform
docker buildx build --load --platform linux/amd64 -t my-image-tag .
```
2 changes: 2 additions & 0 deletions .github/workflows/devcontainer-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
context: flowpipe/.devcontainer/build
push: true
platforms: linux/arm64,linux/amd64
build-args: |
DEVCONTAINER_VERSION=${{ github.event.inputs.version }}
tags: |
ghcr.io/turbot/flowpipe-devcontainer:${{ github.event.inputs.version }}
ghcr.io/turbot/flowpipe-devcontainer:latest

0 comments on commit d019d57

Please sign in to comment.