-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (30 loc) · 1.23 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM lsstts/develop-env:develop as crio-develop
USER root
RUN chmod a+rwX -R /home/saluser/
USER saluser
ARG XML_BRANCH=develop
WORKDIR /home/saluser
RUN source ~/.setup.sh \
&& mamba install -y readline yaml-cpp boost-cpp catch2 spdlog fmt fftw \
&& echo > .crio_setup.sh -e \
echo "Configuring cRIO development environment" \\n\
export SHELL=bash \\n\
source /home/saluser/.setup_salobj.sh \\n\
export PATH=\$CONDA_PREFIX/bin:\$PATH \\n\
export LIBS="-L\$CONDA_PREFIX/lib" \\n\
export CPP_FLAGS="-I\$CONDA_PREFIX/include" \\n
# temporary upgrade ts_sal, needed for current develop ts_xml (which changed paths)
RUN source ~/.crio_setup.sh && cd repos/ts_sal \
&& git fetch && git checkout develop && git pull
RUN source ~/.crio_setup.sh && cd $TS_XML_DIR \
&& git fetch && git checkout $XML_BRANCH && git pull \
&& salgenerator generate cpp MTVMS
FROM crio-develop
ARG cRIO_CPP=develop
ARG VMS=develop
ARG TARGET=simulator
RUN cd repos && git clone --branch $cRIO_CPP https://github.com/lsst-ts/ts_cRIOcpp
RUN source ~/.crio_setup.sh && cd repos/ts_cRIOcpp && make
RUN cd repos && git clone --branch $VMS https://github.com/lsst-ts/ts_vms
RUN source ~/.crio_setup.sh && cd repos/ts_vms && make $TARGET
SHELL ["/bin/bash", "-lc"]