Skip to content

Commit

Permalink
[base_containers] Move containers to GitHub registry (#921)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrybowski committed Jun 15, 2023
1 parent dd7dacf commit af0cee6
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/env_containers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Build and push base grading containers

on:
push:
branches: [master]

workflow_dispatch:

jobs:
containers_build_and_push:
uses: INGInious/.github/.github/workflows/containers.yml@673723b119b1a92695dd5fea1520f5ae28e38abb
with:
working-directory: base-containers
context-path: context.yml
compose-path: compose.yml
registry: ghcr.io
secrets:
GHCR_USERNAME: ${{ secrets.GHCR_USERNAME }}
GHCR_TOKEN: ${{ secrets.GHCR_TOKEN }}
3 changes: 3 additions & 0 deletions base-containers/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

LABEL org.opencontainers.image.source=https://github.com/UCL-INGI/INGInious-containers
LABEL org.opencontainers.image.description="Base INGInious grading environment."

LABEL org.inginious.grading.agent_version=3

# Install python, needed for scripts used in INGInious + locale support
Expand Down
5 changes: 5 additions & 0 deletions base-containers/context.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
images:
base:
default:
- base
base_path: "."
7 changes: 6 additions & 1 deletion base-containers/default/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@

#inherit from the base container, which have all the needed script to launch tasks
ARG VERSION=latest
FROM ingi/inginious-c-base:${VERSION}
ARG REGISTRY
FROM ${REGISTRY}/inginious/env-base:${VERSION}

LABEL org.opencontainers.image.source=https://github.com/UCL-INGI/INGInious-containers
LABEL org.opencontainers.image.description="Default INGInious grading environment."

LABEL org.inginious.grading.name="default"

0 comments on commit af0cee6

Please sign in to comment.