diff --git a/.github/workflows/images-creator.yml b/.github/workflows/images-creator.yml index 15a3f27..27fd796 100644 --- a/.github/workflows/images-creator.yml +++ b/.github/workflows/images-creator.yml @@ -69,6 +69,31 @@ jobs: echo "Skipping deploy no secrets present"; fi + el9-dirac: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: build + run: docker build -t el9-dirac el9-dirac/ + - name: tag + run: | + docker tag el9-dirac diracgrid/el9-dirac:latest + docker tag el9-dirac ghcr.io/diracgrid/management/el9-dirac:latest + - name: show + run: docker images + - name: login and push + env: + deploy_secret: ${{ secrets.DOCKER_HUB_USERNAME }} + run: | + if [ ! -z ${deploy_secret} ]; then + echo ${{ secrets.DOCKER_HUB_PASSWORD }} | docker login --username ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin; + echo ${{ secrets.CR_PAT }} | docker login ghcr.io --username ${{ github.actor }} --password-stdin; + docker push diracgrid/el9-dirac:latest; + docker push ghcr.io/diracgrid/management/el9-dirac:latest; + else + echo "Skipping deploy no secrets present"; + fi + c8-dirac: runs-on: ubuntu-latest steps: diff --git a/el9-dirac/Dockerfile b/el9-dirac/Dockerfile new file mode 100644 index 0000000..1aa9aa2 --- /dev/null +++ b/el9-dirac/Dockerfile @@ -0,0 +1,13 @@ +# +# Simple extension of Alma9 with git, openssl and runit +# +#.................................................................. +FROM cern/alma9-base:latest +ARG RUNIT_RPM=runit-2.1.2-2.el9.x86_64.rpm + +RUN yum install -y git freetype fontconfig pixman libXrender psmisc python3 && \ + yum localinstall -y "http://diracproject.web.cern.ch/diracproject/rpm/${RUNIT_RPM}" && \ + yum clean all && \ + rm -rf /var/lib/apt/lists/* /lib/modules/* /lib/firmware/* /lib/kbd /var/cache/yum + +CMD ["/usr/sbin/init"]