-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile-corsika
43 lines (35 loc) · 1.33 KB
/
Dockerfile-corsika
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM almalinux:9.3 AS build_image
WORKDIR /workdir
ENV DEBIAN_FRONTEND=noninteractive
ARG CORSIKA=corsika-77500
RUN yum update -y && yum install -y \
csh \
perl \
gcc-fortran && \
yum clean all
ADD $CORSIKA.tar.gz .
# CORSIKA compile options derived with coconut
COPY ./docker/corsika-config.h $CORSIKA/include/config.h
# build corsika
WORKDIR $CORSIKA
RUN ./coconut < /dev/null
SHELL ["/bin/bash", "-c"]
WORKDIR /workdir/
FROM almalinux:9.3-minimal
LABEL maintainer.name="VERITAS Collaboration"
LABEL maintainer.email="[email protected]"
LABEL org.opencontainers.image.source="https://github.com/VERITAS-Observatory/VTS-SimPipe"
LABEL org.opencontainers.image.description="CORSIKA 7.7500 (non-optimized version) as used for the VERITAS simulation pipeline."
LABEL org.opencontainers.image.licenses="BSD-3-Clause"
WORKDIR /workdir
ENV DEBIAN_FRONTEND=noninteractive
ARG CORSIKA=corsika-77500
COPY --from=build_image /workdir/$CORSIKA/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/