Skip to content
Snippets Groups Projects
Unverified Commit 5773648c authored by AJRubio-Montero's avatar AJRubio-Montero Committed by GitHub
Browse files

Create Dockerfile

parent 5ee487c3
No related branches found
No related tags found
No related merge requests found
################################################################################
# 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 LAGO crktools
RUN yum -y install bzip2
RUN cd /opt && git clone https://github.com/lagoproject/arti.git
RUN cd /opt/arti && make
#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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment