Commit a7a0b683 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Merge branch 'docker' into 'master'

Docker: add EUDAQ2 to the dependencies and build the event loader

See merge request !163
parents b0d1b9a6 101f8f24
Pipeline #1082715 passed with stages
in 24 minutes and 15 seconds
......@@ -11,7 +11,8 @@ WORKDIR "/data"
RUN source scl_source enable devtoolset-7 && \
mkdir -p /opt/corryvreckan/build && \
cd /opt/corryvreckan/build && \
cmake3 -DCMAKE_INSTALL_PREFIX=../ \
cmake3 -DBUILD_EventLoaderEUDAQ2=ON \
-DCMAKE_INSTALL_PREFIX=../ \
-DCMAKE_MODULE_PATH="/usr/share/cmake3/Modules/;/usr/share/cmake/Modules/" \
.. && \
make -j`grep -c processor /proc/cpuinfo` && \
......
......@@ -31,3 +31,23 @@ RUN source scl_source enable devtoolset-7 && \
make -j`grep -c processor /proc/cpuinfo` && \
make install && \
rm -rf ${ROOTSYS}/{src,build}
ENV EUDAQ2_VERSION master
# 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 && \
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 \
-DEUDAQ_INSTALL_PREFIX=../ \
../src/eudaq-${EUDAQ2_VERSION} && \
make -j`grep -c processor /proc/cpuinfo` && \
make install && \
rm -rf ${EUDAQ2PATH}/{src,build}
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