Skip to content

Commit 747f2df

Browse files
Ubuntu22 geant4s (#15)
* Update * Ubuntu22 geant4s (11.0, 11.1, 11.2)
1 parent 8ba2a4c commit 747f2df

File tree

5 files changed

+163
-1
lines changed

5 files changed

+163
-1
lines changed

.github/workflows/docker-image.yml

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,121 @@ jobs:
124124
file: ./dockerfiles/ubuntu22-g4.10.7
125125
push: true
126126
tags: ${{ steps.meta.outputs.tags }}
127+
labels: ${{ steps.meta.outputs.labels }}
128+
129+
ubuntu22-g4-11-4:
130+
needs: [ubuntu22_base]
131+
name: Push Ubuntu22 g4.11.4 docker image to Docker Hub
132+
runs-on: ubuntu-latest
133+
steps:
134+
- name: Check out the repo
135+
uses: actions/checkout@v4
136+
137+
- name: Log in to Docker Hub
138+
uses: docker/login-action@v3
139+
with:
140+
Username: ${{ vars.BOOGERT_DOCKER_USERNAME }}
141+
password: ${{ secrets.BOOGERT_DOCKER_PASSWORD }}
142+
143+
- name: Extract metadata (tags, labels) for Docker
144+
id: meta
145+
uses: docker/metadata-action@v5
146+
with:
147+
images: sboogert/ubuntu22-g4.11.4
148+
149+
- name: Build and push Docker image
150+
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
151+
with:
152+
context: .
153+
file: ./dockerfiles/ubuntu22-g4.10.7
154+
push: true
155+
tags: ${{ steps.meta.outputs.tags }}
156+
labels: ${{ steps.meta.outputs.labels }}
157+
158+
ubuntu22-g4-11-0:
159+
needs: [ubuntu22_base]
160+
name: Push Ubuntu22 g4.11.0 docker image to Docker Hub
161+
runs-on: ubuntu-latest
162+
steps:
163+
- name: Check out the repo
164+
uses: actions/checkout@v4
165+
166+
- name: Log in to Docker Hub
167+
uses: docker/login-action@v3
168+
with:
169+
Username: ${{ vars.BOOGERT_DOCKER_USERNAME }}
170+
password: ${{ secrets.BOOGERT_DOCKER_PASSWORD }}
171+
172+
- name: Extract metadata (tags, labels) for Docker
173+
id: meta
174+
uses: docker/metadata-action@v5
175+
with:
176+
images: sboogert/ubuntu22-g4.11.0
177+
178+
- name: Build and push Docker image
179+
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
180+
with:
181+
context: .
182+
file: ./dockerfiles/ubuntu22-g4.11.0
183+
push: true
184+
tags: ${{ steps.meta.outputs.tags }}
185+
labels: ${{ steps.meta.outputs.labels }}
186+
187+
ubuntu22-g4-11-1:
188+
needs: [ubuntu22_base]
189+
name: Push Ubuntu22 g4.11.1 docker image to Docker Hub
190+
runs-on: ubuntu-latest
191+
steps:
192+
- name: Check out the repo
193+
uses: actions/checkout@v4
194+
195+
- name: Log in to Docker Hub
196+
uses: docker/login-action@v3
197+
with:
198+
Username: ${{ vars.BOOGERT_DOCKER_USERNAME }}
199+
password: ${{ secrets.BOOGERT_DOCKER_PASSWORD }}
200+
201+
- name: Extract metadata (tags, labels) for Docker
202+
id: meta
203+
uses: docker/metadata-action@v5
204+
with:
205+
images: sboogert/ubuntu22-g4.11.1
206+
207+
- name: Build and push Docker image
208+
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
209+
with:
210+
context: .
211+
file: ./dockerfiles/ubuntu22-g4.11.1
212+
push: true
213+
tags: ${{ steps.meta.outputs.tags }}
214+
labels: ${{ steps.meta.outputs.labels }}
215+
216+
217+
ubuntu22-g4-11-2:
218+
needs: [ubuntu22_base]
219+
name: Push Ubuntu22 g4.11.2 docker image to Docker Hub
220+
runs-on: ubuntu-latest
221+
steps:
222+
- name: Check out the repo
223+
uses: actions/checkout@v4
224+
225+
- name: Log in to Docker Hub
226+
uses: docker/login-action@v3
227+
with:
228+
Username: ${{ vars.BOOGERT_DOCKER_USERNAME }}
229+
password: ${{ secrets.BOOGERT_DOCKER_PASSWORD }}
230+
231+
- name: Extract metadata (tags, labels) for Docker
232+
id: meta
233+
uses: docker/metadata-action@v5
234+
with:
235+
images: sboogert/ubuntu22-g4.11.2
236+
237+
- name: Build and push Docker image
238+
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
239+
with:
240+
context: .
241+
file: ./dockerfiles/ubuntu22-g4.11.2
242+
push: true
243+
tags: ${{ steps.meta.outputs.tags }}
127244
labels: ${{ steps.meta.outputs.labels }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# docker
1+
# Docker
22
Docker build and test environments for BDSIM

dockerfiles/ubuntu22-g4.11.0

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM sboogert/ubuntu22-base
2+
3+
# CLHEP
4+
RUN wget https://proj-clhep.web.cern.ch/proj-clhep/dist1/clhep-2.4.4.0.tgz && \
5+
tar -xf clhep-2.4.4.0.tgz && rm -rf clhep-2.4.4.0.tgz && \
6+
mkdir clhep-build && cd clhep-build && cmake ../2.4.4.0/CLHEP/ && \
7+
make -j10 && make install && cd ../ && rm -rfv 2.4.4.0 clhep-build
8+
9+
# Geant4
10+
RUN git clone https://gitlab.cern.ch/geant4/geant4.git &&\
11+
cd geant4 && git checkout geant4-11.0-release && cd ../ &&\
12+
mkdir geant4-build && cd geant4-build &&\
13+
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 ../ &&\
14+
rm -rfv geant4-build geant4 &&\
15+
echo 'source /usr/local/bin/geant4.sh' >> ~/.bashrc

dockerfiles/ubuntu22-g4.11.1

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM sboogert/ubuntu22-base
2+
3+
# CLHEP
4+
RUN wget https://proj-clhep.web.cern.ch/proj-clhep/dist1/clhep-2.4.4.0.tgz && \
5+
tar -xf clhep-2.4.4.0.tgz && rm -rf clhep-2.4.4.0.tgz && \
6+
mkdir clhep-build && cd clhep-build && cmake ../2.4.4.0/CLHEP/ && \
7+
make -j10 && make install && cd ../ && rm -rfv 2.4.4.0 clhep-build
8+
9+
# Geant4
10+
RUN git clone https://gitlab.cern.ch/geant4/geant4.git &&\
11+
cd geant4 && git checkout geant4-11.1-release && cd ../ &&\
12+
mkdir geant4-build && cd geant4-build &&\
13+
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 ../ &&\
14+
rm -rfv geant4-build geant4 &&\
15+
echo 'source /usr/local/bin/geant4.sh' >> ~/.bashrc

dockerfiles/ubuntu22-g4.11.2

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM sboogert/ubuntu22-base
2+
3+
# CLHEP
4+
RUN wget https://proj-clhep.web.cern.ch/proj-clhep/dist1/clhep-2.4.4.0.tgz && \
5+
tar -xf clhep-2.4.4.0.tgz && rm -rf clhep-2.4.4.0.tgz && \
6+
mkdir clhep-build && cd clhep-build && cmake ../2.4.4.0/CLHEP/ && \
7+
make -j10 && make install && cd ../ && rm -rfv 2.4.4.0 clhep-build
8+
9+
# Geant4
10+
RUN git clone https://gitlab.cern.ch/geant4/geant4.git &&\
11+
cd geant4 && git checkout geant4-11.2-release && cd ../ &&\
12+
mkdir geant4-build && cd geant4-build &&\
13+
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 ../ &&\
14+
rm -rfv geant4-build geant4 &&\
15+
echo 'source /usr/local/bin/geant4.sh' >> ~/.bashrc

0 commit comments

Comments
 (0)