Skip to content

Commit 3d06563

Browse files
centos7 and centos8 (#24)
* centos8 geant4s (10.7, 11.0, 11.1, 11.2) * centos7 geant4s (10.7, 11.0, 11.1, 11.2)
1 parent 63de456 commit 3d06563

File tree

10 files changed

+411
-19
lines changed

10 files changed

+411
-19
lines changed

.github/workflows/docker-image.yml

Lines changed: 296 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,70 @@ jobs:
6868
tags: ${{ steps.meta.outputs.tags }}
6969
labels: ${{ steps.meta.outputs.labels }}
7070

71+
centos7_base:
72+
name: Push centos7 docker image to Docker Hub
73+
runs-on: ubuntu-latest
74+
steps:
75+
- name: Check username
76+
run: |
77+
echo ${{ vars.BOOGERT_DOCKER_USERNAME }}
78+
79+
- name: Check out the repo
80+
uses: actions/checkout@v4
81+
82+
- name: Log in to Docker Hub
83+
uses: docker/login-action@v3
84+
with:
85+
Username: ${{ vars.BOOGERT_DOCKER_USERNAME }}
86+
password: ${{ secrets.BOOGERT_DOCKER_PASSWORD }}
87+
88+
- name: Extract metadata (tags, labels) for Docker
89+
id: meta
90+
uses: docker/metadata-action@v5
91+
with:
92+
images: sboogert/centos7-base
93+
94+
- name: Build and push Docker image
95+
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
96+
with:
97+
context: .
98+
file: ./dockerfiles/centos7-base
99+
push: true
100+
tags: ${{ steps.meta.outputs.tags }}
101+
labels: ${{ steps.meta.outputs.labels }}
102+
103+
centos8_base:
104+
name: Push centos8 docker image to Docker Hub
105+
runs-on: ubuntu-latest
106+
steps:
107+
- name: Check username
108+
run: |
109+
echo ${{ vars.BOOGERT_DOCKER_USERNAME }}
110+
111+
- name: Check out the repo
112+
uses: actions/checkout@v4
113+
114+
- name: Log in to Docker Hub
115+
uses: docker/login-action@v3
116+
with:
117+
Username: ${{ vars.BOOGERT_DOCKER_USERNAME }}
118+
password: ${{ secrets.BOOGERT_DOCKER_PASSWORD }}
119+
120+
- name: Extract metadata (tags, labels) for Docker
121+
id: meta
122+
uses: docker/metadata-action@v5
123+
with:
124+
images: sboogert/centos8-base
125+
126+
- name: Build and push Docker image
127+
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
128+
with:
129+
context: .
130+
file: ./dockerfiles/centos8-base
131+
push: true
132+
tags: ${{ steps.meta.outputs.tags }}
133+
labels: ${{ steps.meta.outputs.labels }}
134+
71135
alma9_base:
72136
name: Push Alma9 docker image to Docker Hub
73137
runs-on: ubuntu-latest
@@ -332,6 +396,238 @@ jobs:
332396
tags: ${{ steps.meta.outputs.tags }}
333397
labels: ${{ steps.meta.outputs.labels }}
334398

399+
centos7-g4-10-7:
400+
needs: [centos7_base]
401+
name: Push Centos7 g4.10.7 docker image to Docker Hub
402+
runs-on: ubuntu-latest
403+
steps:
404+
- name: Check out the repo
405+
uses: actions/checkout@v4
406+
407+
- name: Log in to Docker Hub
408+
uses: docker/login-action@v3
409+
with:
410+
Username: ${{ vars.BOOGERT_DOCKER_USERNAME }}
411+
password: ${{ secrets.BOOGERT_DOCKER_PASSWORD }}
412+
413+
- name: Extract metadata (tags, labels) for Docker
414+
id: meta
415+
uses: docker/metadata-action@v5
416+
with:
417+
images: sboogert/centos7-g4.10.7
418+
419+
- name: Build and push Docker image
420+
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
421+
with:
422+
context: .
423+
file: ./dockerfiles/centos7-g4.10.7
424+
push: true
425+
tags: ${{ steps.meta.outputs.tags }}
426+
labels: ${{ steps.meta.outputs.labels }}
427+
428+
centos7-g4-11-0:
429+
needs: [centos7_base]
430+
name: Push Centos7 g4.11.0 docker image to Docker Hub
431+
runs-on: ubuntu-latest
432+
steps:
433+
- name: Check out the repo
434+
uses: actions/checkout@v4
435+
436+
- name: Log in to Docker Hub
437+
uses: docker/login-action@v3
438+
with:
439+
Username: ${{ vars.BOOGERT_DOCKER_USERNAME }}
440+
password: ${{ secrets.BOOGERT_DOCKER_PASSWORD }}
441+
442+
- name: Extract metadata (tags, labels) for Docker
443+
id: meta
444+
uses: docker/metadata-action@v5
445+
with:
446+
images: sboogert/centos8-g4.11.0
447+
448+
- name: Build and push Docker image
449+
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
450+
with:
451+
context: .
452+
file: ./dockerfiles/centos8-g4.11.0
453+
push: true
454+
tags: ${{ steps.meta.outputs.tags }}
455+
labels: ${{ steps.meta.outputs.labels }}
456+
457+
centos7-g4-11-1:
458+
needs: [centos7_base]
459+
name: Push centos7 g4.11.1 docker image to Docker Hub
460+
runs-on: ubuntu-latest
461+
steps:
462+
- name: Check out the repo
463+
uses: actions/checkout@v4
464+
465+
- name: Log in to Docker Hub
466+
uses: docker/login-action@v3
467+
with:
468+
Username: ${{ vars.BOOGERT_DOCKER_USERNAME }}
469+
password: ${{ secrets.BOOGERT_DOCKER_PASSWORD }}
470+
471+
- name: Extract metadata (tags, labels) for Docker
472+
id: meta
473+
uses: docker/metadata-action@v5
474+
with:
475+
images: sboogert/centos7-g4.11.1
476+
477+
- name: Build and push Docker image
478+
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
479+
with:
480+
context: .
481+
file: ./dockerfiles/centos7-g4.11.1
482+
push: true
483+
tags: ${{ steps.meta.outputs.tags }}
484+
labels: ${{ steps.meta.outputs.labels }}
485+
486+
centos7-g4-11-2:
487+
needs: [centos8_base]
488+
name: Push Centos7 g4.11.2 docker image to Docker Hub
489+
runs-on: ubuntu-latest
490+
steps:
491+
- name: Check out the repo
492+
uses: actions/checkout@v4
493+
494+
- name: Log in to Docker Hub
495+
uses: docker/login-action@v3
496+
with:
497+
Username: ${{ vars.BOOGERT_DOCKER_USERNAME }}
498+
password: ${{ secrets.BOOGERT_DOCKER_PASSWORD }}
499+
500+
- name: Extract metadata (tags, labels) for Docker
501+
id: meta
502+
uses: docker/metadata-action@v5
503+
with:
504+
images: sboogert/centos7-g4.11.2
505+
506+
- name: Build and push Docker image
507+
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
508+
with:
509+
context: .
510+
file: ./dockerfiles/centos7-g4.11.2
511+
push: true
512+
tags: ${{ steps.meta.outputs.tags }}
513+
labels: ${{ steps.meta.outputs.labels }}
514+
515+
centos8-g4-10-7:
516+
needs: [centos8_base]
517+
name: Push Centos8 g4.10.7 docker image to Docker Hub
518+
runs-on: ubuntu-latest
519+
steps:
520+
- name: Check out the repo
521+
uses: actions/checkout@v4
522+
523+
- name: Log in to Docker Hub
524+
uses: docker/login-action@v3
525+
with:
526+
Username: ${{ vars.BOOGERT_DOCKER_USERNAME }}
527+
password: ${{ secrets.BOOGERT_DOCKER_PASSWORD }}
528+
529+
- name: Extract metadata (tags, labels) for Docker
530+
id: meta
531+
uses: docker/metadata-action@v5
532+
with:
533+
images: sboogert/centos8-g4.10.7
534+
535+
- name: Build and push Docker image
536+
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
537+
with:
538+
context: .
539+
file: ./dockerfiles/centos8-g4.10.7
540+
push: true
541+
tags: ${{ steps.meta.outputs.tags }}
542+
labels: ${{ steps.meta.outputs.labels }}
543+
544+
centos8-g4-11-0:
545+
needs: [centos8_base]
546+
name: Push Centos8 g4.11.0 docker image to Docker Hub
547+
runs-on: ubuntu-latest
548+
steps:
549+
- name: Check out the repo
550+
uses: actions/checkout@v4
551+
552+
- name: Log in to Docker Hub
553+
uses: docker/login-action@v3
554+
with:
555+
Username: ${{ vars.BOOGERT_DOCKER_USERNAME }}
556+
password: ${{ secrets.BOOGERT_DOCKER_PASSWORD }}
557+
558+
- name: Extract metadata (tags, labels) for Docker
559+
id: meta
560+
uses: docker/metadata-action@v5
561+
with:
562+
images: sboogert/centos8-g4.11.0
563+
564+
- name: Build and push Docker image
565+
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
566+
with:
567+
context: .
568+
file: ./dockerfiles/centos8-g4.11.0
569+
push: true
570+
tags: ${{ steps.meta.outputs.tags }}
571+
labels: ${{ steps.meta.outputs.labels }}
572+
573+
centos8-g4-11-1:
574+
needs: [centos8_base]
575+
name: Push Centos8 g4.11.1 docker image to Docker Hub
576+
runs-on: ubuntu-latest
577+
steps:
578+
- name: Check out the repo
579+
uses: actions/checkout@v4
580+
581+
- name: Log in to Docker Hub
582+
uses: docker/login-action@v3
583+
with:
584+
Username: ${{ vars.BOOGERT_DOCKER_USERNAME }}
585+
password: ${{ secrets.BOOGERT_DOCKER_PASSWORD }}
586+
587+
- name: Extract metadata (tags, labels) for Docker
588+
id: meta
589+
uses: docker/metadata-action@v5
590+
with:
591+
images: sboogert/centos8-g4.11.1
592+
593+
- name: Build and push Docker image
594+
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
595+
with:
596+
context: .
597+
file: ./dockerfiles/centos8-g4.11.1
598+
push: true
599+
tags: ${{ steps.meta.outputs.tags }}
600+
labels: ${{ steps.meta.outputs.labels }}
601+
602+
centos8-g4-11-2:
603+
needs: [centos8_base]
604+
name: Push Centos8 g4.11.2 docker image to Docker Hub
605+
runs-on: ubuntu-latest
606+
steps:
607+
- name: Check out the repo
608+
uses: actions/checkout@v4
609+
610+
- name: Log in to Docker Hub
611+
uses: docker/login-action@v3
612+
with:
613+
Username: ${{ vars.BOOGERT_DOCKER_USERNAME }}
614+
password: ${{ secrets.BOOGERT_DOCKER_PASSWORD }}
615+
616+
- name: Extract metadata (tags, labels) for Docker
617+
id: meta
618+
uses: docker/metadata-action@v5
619+
with:
620+
images: sboogert/centos8-g4.11.2
621+
622+
- name: Build and push Docker image
623+
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
624+
with:
625+
context: .
626+
file: ./dockerfiles/centos8-g4.11.2
627+
push: true
628+
tags: ${{ steps.meta.outputs.tags }}
629+
labels: ${{ steps.meta.outputs.labels }}
630+
335631
alma9-g4-10-7:
336632
needs: [alma9_base]
337633
name: Push Alma9 g4.10.7 docker image to Docker Hub

dockerfiles/centos7-g4.10.7

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,17 @@
1-
FROM jairhul/centos7-base
2-
3-
SHELL ["/bin/bash", "-c"]
4-
5-
WORKDIR /tmp
1+
FROM sboogert/centos8-base
62

73
# CLHEP
84
RUN wget https://proj-clhep.web.cern.ch/proj-clhep/dist1/clhep-2.4.4.0.tgz && \
95
tar -xf clhep-2.4.4.0.tgz && rm -rf clhep-2.4.4.0.tgz && \
10-
source scl_source enable devtoolset-7 && \
116
mkdir clhep-build && cd clhep-build && cmake ../2.4.4.0/CLHEP/ && \
7+
source scl_source enable devtoolset-7 &&\
128
make -j10 && make install && cd ../ && rm -rfv 2.4.4.0 clhep-build
139

1410
# Geant4
1511
RUN git clone https://gitlab.cern.ch/geant4/geant4.git &&\
16-
cd geant4 && git checkout geant4-10.7-release && cd ../ &&\
12+
cd geant4 && git checkout v10.7.4 && cd ../ &&\
1713
mkdir geant4-build && cd geant4-build &&\
1814
source scl_source enable devtoolset-7 &&\
1915
cmake ../geant4 -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_GDML=ON -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_SYSTEM_CLHEP=ON -DGEANT4_USE_RAYTRACER_X11=ON && make -j6 && make install && cd ../ &&\
2016
rm -rfv geant4-build geant4 &&\
21-
echo 'source /usr/local/bin/geant4.sh' >> ~/.bashrc
22-
23-
24-
RUN dbus-uuidgen > /var/lib/dbus/machine-id && \
25-
mkdir -p /var/run/dbus && \
26-
dbus-daemon --config-file=/usr/share/dbus-1/system.conf --print-address
27-
28-
#RUN echo 'export LIBGL_ALWAYS_SOFTWARE=true' >> ~/.bashrc && \
29-
RUN echo 'export QT_GRAPHICSSYSTEM="native"' >> ~/.bashrc
17+
echo 'source /usr/local/bin/geant4.sh' >> ~/.bashrc

dockerfiles/centos7-g4.11.0

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM sboogert/centos8-base
2+
3+
# CLHEP
4+
RUN wget https://proj-clhep.web.cern.ch/proj-clhep/dist1/clhep-2.4.5.1.tgz && \
5+
tar -xf clhep-2.4.5.1.tgz && rm -rf clhep-2.4.5.1.tgz && \
6+
mkdir clhep-build && cd clhep-build && cmake ../2.4.5.1/CLHEP/ && \
7+
source scl_source enable devtoolset-7 &&\
8+
make -j10 && make install && cd ../ && rm -rfv 2.4.5.1 clhep-build
9+
10+
# Geant4
11+
RUN git clone https://gitlab.cern.ch/geant4/geant4.git &&\
12+
cd geant4 && git checkout v11.0.3 && cd ../ &&\
13+
mkdir geant4-build && cd geant4-build &&\
14+
source scl_source enable devtoolset-7 &&\
15+
cmake ../geant4 -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_GDML=ON -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_SYSTEM_CLHEP=ON -DGEANT4_USE_RAYTRACER_X11=ON && make -j6 && make install && cd ../ &&\
16+
rm -rfv geant4-build geant4 &&\
17+
echo 'source /usr/local/bin/geant4.sh' >> ~/.bashrc

dockerfiles/centos7-g4.11.1

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM sboogert/centos8-base
2+
3+
# CLHEP
4+
RUN wget https://proj-clhep.web.cern.ch/proj-clhep/dist1/clhep-2.4.6.2.tgz && \
5+
tar -xf clhep-2.4.6.2.tgz && rm -rf clhep-2.4.6.2.tgz && \
6+
mkdir clhep-build && cd clhep-build && cmake ../2.4.6.2/CLHEP/ && \
7+
source scl_source enable devtoolset-7 &&\
8+
make -j10 && make install && cd ../ && rm -rfv 2.4.6.2 clhep-build
9+
10+
# Geant4
11+
RUN git clone https://gitlab.cern.ch/geant4/geant4.git &&\
12+
cd geant4 && git checkout v11.1.3 && cd ../ &&\
13+
mkdir geant4-build && cd geant4-build &&\
14+
source scl_source enable devtoolset-7 &&\
15+
cmake ../geant4 -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_GDML=ON -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_SYSTEM_CLHEP=ON -DGEANT4_USE_RAYTRACER_X11=ON && make -j6 && make install && cd ../ &&\
16+
rm -rfv geant4-build geant4 &&\
17+
echo 'source /usr/local/bin/geant4.sh' >> ~/.bashrc

0 commit comments

Comments
 (0)