-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
70 lines (52 loc) · 2.43 KB
/
Copy pathDockerfile
File metadata and controls
70 lines (52 loc) · 2.43 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
################################################################################
# Original Author: A.J. Rubio-Montero (http://orcid.org/0000-0001-6497-753X), #
# CIEMAT - Sci-Track Group (http://rdgroups.ciemat.es/web/sci-track), #
# for the EOSC-Synergy project (EU H2020 RI Grant No 857647). #
# License (SPDX): BSD-3-Clause (https://opensource.org/licenses/BSD-3-Clause) #
# Copyright (c): 2020-today, The LAGO Collaboration (http://lagoproject.net) #
################################################################################
FROM centos:7.8.2003
#
ARG ONECLIENT_ACCESS_TOKEN_TO_BUILD
ARG ONECLIENT_PROVIDER_HOST_TO_BUILD
# user credentials when the container were used
ENV ONECLIENT_ACCESS_TOKEN=""
ENV ONECLIENT_PROVIDER_HOST=""
RUN yum -y update
# CORSIKA pre-requisites
RUN yum -y install gcc gcc-c++ gcc-gfortran \
curl csh make perl perl-Data-Dumper \
git perl-Switch
# CORSIKA autorished copy for internal distribution on the LAGO Collaboration (CDMI private link)
RUN curl -k -H "X-Auth-Token: $ONECLIENT_ACCESS_TOKEN_TO_BUILD" \
"$ONECLIENT_PROVIDER_HOST_TO_BUILD/cdmi/test4/corsika/corsika-75600-lago.tar.gz" \
| tar xvz -C /opt
RUN cd /opt/corsika-75600-lago && ./coconut -b
## testing corsika
## ./corsika75600Linux_QGSII_gheisha < all-inputs > output.txt
#dowload and compile ARTI LAGO crktools
RUN yum -y install bzip2
# we use the ones tested with onedataSim package
# RUN cd /opt && git clone https://github.com/lagoproject/arti.git
RUN cd /opt && git clone --recursive https://github.com/AJRubio-Montero/onedataSim.git
RUN cd /opt/onedataSim/arti && make
#set paths and permissions for onedataSim
RUN cd /opt/onedataSim && bash install.sh
#Onedata and tools needed by onedataSim
#download and install oneclient
#We did not use oneclient for downloading corsika-lago to isolate from its compiling
# and because it were need use privileged mode.
RUN curl -sS http://get.onedata.org/oneclient-1902.sh | bash
#getfacl getfattr
RUN yum -y install acl attr
# xattr (this is python2 but I had found the command only in python2)
RUN yum -y install python2-pip python-devel libffi-devel
RUN pip install --upgrade pip
RUN pip install xattr
#python3 and libraries for Lago processing with onedata
RUN yum -y install python3 python36-pyxattr
## testing mount...
## oneclient /mnt
WORKDIR /opt/corsika-75600-lago/run
#ENTRYPOINT /opt/arti/sims/do_datahub.sh
CMD bash