Commit e9ecccb5 authored by Jens Kroeger's avatar Jens Kroeger
Browse files

Merge branch 'docker_update' into 'master'

Docker: Add Peary and build Caribou support in EUDAQ2

See merge request !170
parents 4d31084e e9d37a29
Pipeline #1101455 passed with stages
in 11 minutes and 34 seconds
......@@ -33,19 +33,48 @@ RUN source scl_source enable devtoolset-7 && \
rm -rf ${ROOTSYS}/{src,build}
ENV EUDAQ2_VERSION master
ENV PEARY_VERSION v0.9.7
# Add layer for Caribou Peary
ENV PEARYPATH="/opt/peary"
RUN source scl_source enable devtoolset-7 && \
yum install -y readline-devel && \
mkdir -p ${PEARYPATH}/{src,build} && \
curl -L -o ${PEARYPATH}/peary-${PEARY_VERSION}.zip \
https://gitlab.cern.ch/Caribou/peary/-/archive/${PEARY_VERSION}/peary-${PEARY_VERSION}.zip && \
unzip ${PEARYPATH}/peary-${PEARY_VERSION}.zip -d ${PEARYPATH}/src && \
rm -f ${PEARYPATH}/peary-${PEARY_VERSION}.zip && \
cd ${PEARYPATH}/build && \
cmake3 -DINTERFACE_I2C=OFF \
-DINTERFACE_SPI=OFF \
-DINTERFACE_SPI_CLICpix2=OFF \
-DINTERFACE_MEM=OFF \
-DINSTALL_HEADERS=ON \
-DINSTALL_PREFIX=../ \
../src/peary-${PEARY_VERSION} && \
make -j`grep -c processor /proc/cpuinfo` && \
make install && \
rm -rf ${PEARYPATH}/{src,build}
ENV EUDAQ2_VERSION 2.3.0
# Add layer for EUDAQ2
ENV EUDAQ2PATH="/opt/eudaq2"
RUN source scl_source enable devtoolset-7 && \
mkdir -p ${EUDAQ2PATH}/{src,build} && \
curl -L -o ${EUDAQ2PATH}/eudaq2.${EUDAQ2_VERSION}.zip \
https://github.com/eudaq/eudaq/archive/${EUDAQ2_VERSION}.zip && \
https://github.com/eudaq/eudaq/archive/v${EUDAQ2_VERSION}.zip && \
unzip ${EUDAQ2PATH}/eudaq2.${EUDAQ2_VERSION}.zip -d ${EUDAQ2PATH}/src && \
rm -f ${EUDAQ2PATH}/eudaq2.${EUDAQ2_VERSION}.zip && \
cd ${EUDAQ2PATH}/build && \
cmake3 -DEUDAQ_BUILD_EXECUTABLE=OFF \
-DEUDAQ_BUILD_GUI=OFF \
-DUSER_CARIBOU_BUILD=ON \
-DPEARYLIBS=${PEARYPATH}/lib \
-DPEARYINCLUDE=${PEARYPATH}/include/peary \
-DUSER_EUDET_BUILD=ON \
-DUSER_TLU_BUILD=ON \
-DEUDAQ_INSTALL_PREFIX=../ \
../src/eudaq-${EUDAQ2_VERSION} && \
make -j`grep -c processor /proc/cpuinfo` && \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment