Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

pspa.dockerfile 892 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 22 23 24 25 26 27 28 29 30 31 32 33 34

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