Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCP images build #191

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions .github/workflows/d4science-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
"single-user-sobigdata-aaai24/Dockerfile"
"single-user-criticalzone/Dockerfile"
"single-user-ecologicalrestorationlab/Dockerfile"

"single-user-xaiss/Dockerfile"

base-image:
name: Build base image
needs: detect-changes
needs: detect-changes
if: needs.detect-changes.outputs.build-base == 1
runs-on: ubuntu-latest
outputs:
Expand Down Expand Up @@ -89,6 +89,13 @@ jobs:
images: eginotebooks/${{ matrix.image }}
tags: |
type=sha
- name: Docker meta
id: docker_meta_gcp
uses: docker/metadata-action@v5
with:
images: europe-west4-docker.pkg.dev/d4science-prod-vre-prj/d4science-prod-images/${{ matrix.image }}
tags: |
type=sha
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Get previous build base
Expand Down Expand Up @@ -122,6 +129,14 @@ jobs:
docker push ${{ steps.docker_meta.outputs.tags }}
docker push eginotebooks/${{ matrix.image }}:latest
if: ${{ github.event_name != 'pull_request' }}
# Now do the build adding the GCP extras in
- name: Get ready for GCP
run: |
docker build \
--build-arg BASE_IMAGE=eginotebooks/${{ matrix.image }}:latest \
--tag ${{ steps.docker_meta_gcp.outputs.tags }} \
--tag europe-west4-docker.pkg.dev/d4science-prod-vre-prj/d4science-prod-images/${{ matrix.image }}:latest \
d4science-gcp
- uses: addnab/docker-run-action@v3
with:
image: ${{ steps.docker_meta.outputs.tags }}
Expand Down
18 changes: 18 additions & 0 deletions d4science-gcp/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
ARG BASE_IMAGE=fake:latest
FROM $BASE_IMAGE

USER root

RUN apt-get update \
&& apt-get install --no-install-recommends -y \
fuse \
libfuse2 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

USER $NB_UID

ARG FUSE_JAR=https://nexus.d4science.org/nexus/content/repositories/gcube-snapshots/org/gcube/data-access/sh-fuse-integration/1.2.0-SNAPSHOT/sh-fuse-integration-1.2.0-20210708.160531-5-jar-with-dependencies.jar
RUN mamba create -n java8 -q -y openjdk=8 \
&& curl "$FUSE_JAR" > /opt/conda/envs/java8/sh-fuse-integration-jar-with-dependencies.jar \
&& conda clean -tipy
1 change: 1 addition & 0 deletions single-user-xaiss/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ RUN conda install mamba -y --quiet -c conda-forge \

RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager jupyter-leaflet
RUN jupyter labextension install jupyterlab-topbar-extension jupyterlab-system-monitor