pspa.dockerfile 957 Bytes
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

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 \
22
    && apt-get install -y python3-dev python3-pip  \
TOUZE Francois's avatar
TOUZE Francois committed
23 24 25 26 27 28 29
    && 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 \
30 31 32
    && apt-get install -y curl sudo \
    && curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - \
    && apt-get install -y nodejs \
TOUZE Francois's avatar
TOUZE Francois committed
33 34
    && npm install