back.dockerfile 1.47 KB
Newer Older
TOUZE Francois's avatar
TOUZE Francois committed
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

FROM utilitybox:latest
SHELL ["/bin/bash", "-c"]

ENV CMT_VERSION v1r20p20090520
ENV CMT_PKG CMTv1r20p20090520Linux-i686.tar.gz
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

ENV CMTROOT /usr/local/CMT/v1r20p20090520
ENV CMT $CMTROOT/Linux-x86_64/cmt
ENV CMTPATH /home/pspa/backend
# 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

RUN cd /home

COPY madx-linux64-gnu /home/pspa/softwares/madx64
COPY astra-linux-x86_64 /home/pspa/softwares/astra
COPY generator-linux-x86_64 /home/pspa/softwares/generator
COPY defns.rpn /home/pspa/softwares/defns.rpn
COPY elegant-linux-x86_64 /home/pspa/softwares/elegant
COPY sddsprintout-linux-x86_64 /home/pspa/softwares/sddsprintout
35
COPY betabatchbin /home/pspa/softwares/betabatch
TOUZE Francois's avatar
TOUZE Francois committed
36 37 38 39 40 41 42 43 44 45 46 47 48 49

ENV RPN_DEFNS /home/pspa/softwares/defns.rpn
ENV LIBPATH /usr/lib/x86_64-linux-gnu

RUN apt-get install -y  libgsl23 \
    && ln $LIBPATH/libgsl.so.23 $LIBPATH/libgsl.so.0 \
    && apt-get install -y libgslcblas0 \
    && apt-get install -y liblapack3 \
    && apt-get install -y libgfortran3

RUN apt-get install -y libxss1 \
    && apt-get install -y libxft2 \
    && ln $LIBPATH/libpng16.so.16 $LIBPATH/libpng12.so.0