-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1393ed6
commit f2875ec
Showing
3 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
FROM almalinux:9.3 AS build_image | ||
WORKDIR /workdir | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN yum update -y && yum install -y \ | ||
autoconf \ | ||
automake \ | ||
csh \ | ||
perl \ | ||
gcc-fortran \ | ||
gfortran \ | ||
patch && \ | ||
yum clean all | ||
|
||
ADD corsika-77500.tar.gz . | ||
RUN cd ./corsika-77500/bernlohr && tar -xvzf bernlohr-1.66.tar.gz | ||
# CORSIKA compile options derived with coconut | ||
COPY ./docker/corsika-config-ax2.h corsika-77500/include/config.h | ||
# | ||
# build corsika | ||
WORKDIR /workdir/corsika-77500 | ||
RUN ./coconut < /dev/null | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
WORKDIR /workdir/ | ||
|
||
FROM almalinux:9.3-minimal | ||
LABEL maintainer.name="VERITAS Collaboration" | ||
LABEL maintainer.email="gernot.maier@desy.de" | ||
WORKDIR /workdir | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
ARG CORSIKA=corsika-77500 | ||
COPY --from=build_image /workdir/corsika-77500/run /workdir/corsika-run | ||
|
||
RUN microdnf update -y && microdnf install -y \ | ||
gcc-fortran && \ | ||
microdnf clean all | ||
|
||
COPY ./config/ATMOSPHERE/atmprof*.dat /workdir/corsika-run/ | ||
# qgsjet tables (otherwise CORSIKA generates these tables during startup) | ||
ADD https://syncandshare.desy.de/index.php/s/X9a4c5bYzy5p6nF/download /workdir/corsika-run/tables.dat | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
WORKDIR /workdir/ |