Skip to content

Commit

Permalink
added el9-dirac
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Mar 13, 2024
1 parent 59f86de commit 35ddb1f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/images-creator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,31 @@ jobs:
echo "Skipping deploy no secrets present";
fi
c8-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:
Expand Down
13 changes: 13 additions & 0 deletions el9-dirac/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 python2 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"]

0 comments on commit 35ddb1f

Please sign in to comment.