Commit f2aafef5 authored by TOUZE Francois's avatar TOUZE Francois
Browse files

add dockerfiles

parent 3d744309
FROM utilitybox:latest
ENV CMT_VERSION v1r20p20090520
ENV CMT_PKG CMTv1r20p20090520Linux-i686.tar.gz
SHELL ["/bin/bash", "-c"]
RUN cd /usr/local \
&& wget http://www.cmtsite.net/$CMT_VERSION/$CMT_PKG \
&& tar -xf $CMT_PKG \
&& rm $CMT_PKG \
&& cd CMT/$CMT_VERSION/mgr \
&& ./INSTALL \
&& source setup.sh
FROM cmtbox:latest
ENV CMTROOT /usr/local/CMT/v1r20p20090520
ENV CMT $CMTROOT/Linux-x86_64/cmt
ENV CMTPATH /home/pspa/backend
ENV PYTHONPATH /home/pspa/controller/cython-cpp
SHELL ["/bin/bash", "-c"]
# Install backend package
RUN cd home \
&& /bin/ln -s /usr/bin/make /usr/bin/gmake \
&& git clone https://gitlab.in2p3.fr/PSPA/PSPA.git pspa \
&& cd pspa/backend/pspa/v0/cmt \
&& $CMT config \
&& source setup.sh \
&& $CMT make
# Install controller package
RUN cd home/pspa/controller \
&& apt-get install -y python3-dev \
python3-venv \
python3-pip \
&& pip3 install -r requirements.txt \
&& cd cython-cpp \
&& python3 pspaclass.py build_ext --inplace \
&& python3 pspaplots.py build_ext --inplace
# Install frontend package
RUN cd home/pspa/frontend \
&& apt-get install -y npm \
&& npm install
\ No newline at end of file
FROM ubuntu
ENV XERCES_VERSION 3.2.2
# Update everything
RUN apt-get update
# Install JSON package
RUN apt-get install -y git \
&& cd /usr/local \
&& git clone https://github.com/nlohmann/json
# Install dependencies for build
RUN apt-get install -y \
build-essential \
gfortran
# Install Xerces package
RUN apt-get install -y wget \
&& cd /usr/local \
&& XERCES_PKG=xerces-c-$XERCES_VERSION.tar.gz \
&& wget http://archive.apache.org/dist/xerces/c/3/sources/$XERCES_PKG \
&& tar -xf $XERCES_PKG \
&& rm $XERCES_PKG \
&& cd xerces-c-$XERCES_VERSION \
&& ./configure \
&& make \
&& make install
# Install AML package
RUN apt-get install -y mercurial \
&& cd /usr/local \
&& hg clone https://hg@bitbucket.org/pspa/aml-uap accelerator-ml-code \
&& cd accelerator-ml-code \
&& hg update develop \
&& make libs
# Install CMT package
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment