Skip to content
Snippets Groups Projects
Commit 700712cc authored by Mattia Mancini's avatar Mattia Mancini
Browse files

Add stman and dysco

parent a750fa4b
No related branches found
No related tags found
1 merge request!69Change the name of the pre-calibrated output MS
Pipeline #307 failed
...@@ -28,8 +28,9 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ ...@@ -28,8 +28,9 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
libgtkmm-3.0-dev \ libgtkmm-3.0-dev \
git \ git \
wget \ wget \
libfftw3-dev libfftw3-dev \
libgsl-dev
RUN mkdir -p /src/ RUN mkdir -p /src/
WORKDIR /src/ WORKDIR /src/
...@@ -48,6 +49,21 @@ RUN cd /src/dp3/ && \ ...@@ -48,6 +49,21 @@ RUN cd /src/dp3/ && \
make -j2 && \ make -j2 && \
make install -j2 make install -j2
ADD ./STMAN /src/STMAN/src
RUN cd /src/STMAN/ && \
mkdir build && \
cd build && \
cmake ../src -DCMAKE_INSTALL_PREFIX=/usr/local/ -DPORTABLE=True && \
make -j2 && \
make install -j2
ADD ./Dysco /src/Dysco/src
RUN cd /src/Dysco/ && \
mkdir build && \
cd build && \
cmake ../src -DCMAKE_INSTALL_PREFIX=/usr/local/ -DPORTABLE=True && \
make -j2 && \
make install -j2
#---------------------------------------------- #----------------------------------------------
FROM kernsuite/base:4 as runner FROM kernsuite/base:4 as runner
...@@ -96,6 +112,13 @@ LABEL LSMTool.version.tag=${LSMTool_TAG} ...@@ -96,6 +112,13 @@ LABEL LSMTool.version.tag=${LSMTool_TAG}
ARG LoSoTo_TAG=master ARG LoSoTo_TAG=master
LABEL LoSoTo.version.tag=${LoSoTo_TAG} LABEL LoSoTo.version.tag=${LoSoTo_TAG}
ARG STMAN_TAG=master
LABEL STMAN.version.tag=${STMAN_TAG}
ARG Dysco_TAG=master
LABEL Dysco.version.tag=${Dysco_TAG}
RUN apt-get update && apt-get install -y nodejs python3-pip git wsclean RUN apt-get update && apt-get install -y nodejs python3-pip git wsclean
RUN python3 -m pip install cwltool cwl-runner -e "git://github.com/darafferty/LSMTool.git@${LSMTool_TAG}#egg=LSMTool" \ RUN python3 -m pip install cwltool cwl-runner -e "git://github.com/darafferty/LSMTool.git@${LSMTool_TAG}#egg=LSMTool" \
......
...@@ -5,8 +5,13 @@ git_clone_or_pull () { ...@@ -5,8 +5,13 @@ git_clone_or_pull () {
REPO=$1 REPO=$1
BRANCH=$2 BRANCH=$2
DIR=$3 DIR=$3
if [ -d $DIR ]
git clone --depth 1 -b "${BRANCH}" "${REPO}" "${DIR}" 2> /dev/null || git -C "${DIR}" pull then
git -C "${DIR}" pull
else
mkdir -p ${DIR}
git clone --depth 1 -b "${BRANCH}" "${REPO}" "${DIR}"
fi
} }
# SOFTWARE VERSIONS # SOFTWARE VERSIONS
...@@ -15,7 +20,8 @@ IDG_TAG=0.6 ...@@ -15,7 +20,8 @@ IDG_TAG=0.6
LSMTool_TAG=v1.4.2 LSMTool_TAG=v1.4.2
LoSoTo_TAG=f0398b LoSoTo_TAG=f0398b
TOIL_VERSION=3.20.0 TOIL_VERSION=3.20.0
STMAN_TAG=master
Dysco_TAG=v1.2
# FETCHES THE IDG # FETCHES THE IDG
git_clone_or_pull https://gitlab.com/astron-idg/idg/ ${IDG_TAG} idg git_clone_or_pull https://gitlab.com/astron-idg/idg/ ${IDG_TAG} idg
...@@ -23,6 +29,13 @@ git_clone_or_pull https://gitlab.com/astron-idg/idg/ ${IDG_TAG} idg ...@@ -23,6 +29,13 @@ git_clone_or_pull https://gitlab.com/astron-idg/idg/ ${IDG_TAG} idg
# FETCHES DP3 # FETCHES DP3
git_clone_or_pull https://github.com/lofar-astron/DP3 ${DP3_TAG} DP3 git_clone_or_pull https://github.com/lofar-astron/DP3 ${DP3_TAG} DP3
# FETCHES STMAN
git_clone_or_pull https://github.com/lofar-astron/LofarStMan ${STMAN_TAG} STMAN
# FETCHES Dysco
git_clone_or_pull https://github.com/aroffringa/dysco.git ${Dysco_TAG} Dysco
# FETCHES THE SCRIPTS ONLY # FETCHES THE SCRIPTS ONLY
BRANCH=production BRANCH=production
REPO_URL=https://github.com/lofar-astron/prefactor REPO_URL=https://github.com/lofar-astron/prefactor
...@@ -36,5 +49,7 @@ docker build ${DOCKER_PATH} --build-arg=IDG_TAG=${IDG_TAG}\ ...@@ -36,5 +49,7 @@ docker build ${DOCKER_PATH} --build-arg=IDG_TAG=${IDG_TAG}\
--build-arg=DP3_TAG=${DP3_TAG}\ --build-arg=DP3_TAG=${DP3_TAG}\
--build-arg=LSMTool_TAG=${LSMTool_TAG}\ --build-arg=LSMTool_TAG=${LSMTool_TAG}\
--build-arg=LoSoTo_TAG=${LoSoTo_TAG}\ --build-arg=LoSoTo_TAG=${LoSoTo_TAG}\
--build-arg=STMAN_TAG=${STMAN_TAG}\
--build-arg=Dysco_TAG=${Dysco_TAG}\
--build-arg=TOIL_VERSION=${TOIL_VERSION}\ --build-arg=TOIL_VERSION=${TOIL_VERSION}\
-t lofareosc/prefactor-ci -t lofareosc/prefactor-ci
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment