-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
23 lines (17 loc) · 1 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM gitlab-registry.cern.ch/lhcb-docker/os-base/centos7-devel:latest
MAINTAINER tatiana.ovsiannikova <tatiana.ovsiannikova@cern.ch>
LABEL description="ostap HEP framework"
RUN #!/bin/bash
RUN yum install -y git wget
RUN wget -nv http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
RUN bash miniconda.sh -b -p /root/miniconda
ENV PATH="/root/miniconda/bin:${PATH}"
RUN echo $PATH
RUN conda config --set always_yes yes --set changeps1 no
RUN conda config --add channels conda-forge
RUN conda create -q -n ostapenv root_base=6.20 root-binaries root-dependencies gsl future configparser numpy scipy pathos dill multiprocess ppft terminaltables binutils-meta c-compiler compilers cxx-compiler fortran-compiler python ipython cmake
ADD . /ostap
WORKDIR /ostap
ENV PATH="/root/miniconda/envs/ostapenv/bin:${PATH}"
RUN mkdir build && cd build && cmake .. -DCMAKE_INSTALL_PREFIX=./INSTALL/ && make -j12 && make install && echo "source build/INSTALL/thisostap.sh" >> ~/.bashrc
CMD /bin/bash