From 1fbebbed17b3ada9e0cb00c260c472535c80968d Mon Sep 17 00:00:00 2001 From: Cappy Ishihara Date: Thu, 18 Jul 2024 18:42:10 +0700 Subject: [PATCH] feat: Gitpod docker image --- .github/workflows/build-docker.yml | 13 ++++++++----- dockerfiles/gitpod.dockerfile | 9 +++++++++ 2 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 dockerfiles/gitpod.dockerfile diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 7102b0e..04f16dd 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -157,8 +157,11 @@ jobs: matrix: version: - 40 - dockerfile: - - dockerfiles/devtools.dockerfile + docker: + - dockerfile: dockerfiles/devtools.dockerfile + image: ghcr.io/ultramarine-linux/ultramarine-devtools + - dockerfile: dockerfiles/gitpod.dockerfile + image: ghcr.io/ultramarine-linux/ultramarine-gitpod steps: - name: Checkout @@ -178,12 +181,12 @@ jobs: uses: docker/build-push-action@v6 with: context: . - file: ${{ matrix.dockerfile }} + file: ${{ matrix.docker.dockerfile }} platforms: linux/amd64,linux/arm64 push: true tags: | - ghcr.io/ultramarine-linux/ultramarine-devtools:${{ matrix.version }} - ghcr.io/ultramarine-linux/ultramarine-devtools:latest + ${{ matrix.docker.image }}:${{ matrix.version }} + ${{ matrix.docker.image }}:latest build-args: | RELEASE=${{ matrix.version }} diff --git a/dockerfiles/gitpod.dockerfile b/dockerfiles/gitpod.dockerfile new file mode 100644 index 0000000..b9b931d --- /dev/null +++ b/dockerfiles/gitpod.dockerfile @@ -0,0 +1,9 @@ +ARG RELEASE + +FROM ghcr.io/ultramarine-linux/ultramarine:${RELEASE} + +RUN dnf install -y @development-tools sudo && dnf clean all + +RUN useradd -l -u 33333 -G wheel -md /home/gitpod -s /bin/bash -p gitpod gitpod + +USER gitpod