Commit dffd2f48 authored by James Clark's avatar James Clark

reorganised the dev dockerfile a bit

parent 3f02ae1b
......@@ -8,15 +8,17 @@ LABEL name="BayesWave LALInference_o2 EL7" \
# Setup directories for binding
RUN mkdir -p /cvmfs /hdfs /hadoop /etc/condor
# Dependencies
RUN yum upgrade -y && \
yum clean all && \
rm -rf /var/cache/yum
RUN yum update -y && \
yum install -y lscsoft-lalsuite-dev && \
yum install -y lscsoft-lalsuite-dev cmake3 && \
yum clean all && \
rm -rf /var/cache/yum
# Clone and build lalsuite from source
RUN git clone https://git.ligo.org/lscsoft/lalsuite.git
RUN cd lalsuite && \
./00boot && \
......@@ -27,31 +29,31 @@ RUN cd lalsuite && \
rm -rf lalsuite
#git checkout -b lalinference_o2 origin/lalinference_o2 && \
RUN yum install -y cmake3
# Copy and build BayesWave
COPY .git /tmp
COPY build.sh /tmp
COPY src /tmp/src
COPY CMakeLists.txt /tmp
COPY bayeswave.spec.in /tmp
WORKDIR /tmp
# Copy files from context into container and build BayesWave
COPY .git /.git
COPY install.sh /install.sh
COPY build.sh /build.sh
COPY src /src
COPY CMakeLists.txt /CMakeLists.txt
COPY bayeswave.spec.in /bayeswave.spec.in
COPY etc/bayeswave-user-env.sh /etc/bayeswave-user-env.sh
COPY BayesWaveUtils /BayesWaveUtils
RUN ["/bin/bash", "-c", "source /opt/lscsoft/lalsuite/etc/lalsuiterc && \
mkdir build && \
pushd build && \
cmake3 .. \
-DCMAKE_INSTALL_PREFIX=/opt/lscsoft/bayeswave \
-DCMAKE_BUILD_TYPE=DEBUG \
-DCMAKE_EXPORT_COMPILE_COMMANDS=true && \
cmake3 --build . -- VERBOSE=1 && \
cmake3 --build . --target install"]
# COPY etc/bayeswave-user-env.sh /etc/bayeswave-user-env.sh
# COPY BayesWaveUtils /BayesWaveUtils
sh install.sh /opt/lscsoft/bayeswave"]
RUN rm -rf /.git /install.sh /build.sh /src /bayeswave.spec.in /BayesWaveUtils /etc/bayeswave-user-env.sh
# Set up an entry point so we can source lalsuite and bayeswave user env scripts at startup
COPY docker-entrypoint.sh /usr/local/bin/
RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
ENTRYPOINT ["docker-entrypoint.sh"]
# Keep a note of explicit build commmand for potential future use:
# RUN ["/bin/bash", "-c", "source /opt/lscsoft/lalsuite/etc/lalsuiterc && \
# sh install.sh /opt/lscsoft/bayeswave"]
# RUN rm -rf .git install.sh /src /BayesWaveUtils /etc/bayeswave-user-env.sh
#
# COPY docker-entrypoint.sh /usr/local/bin/
# RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
# ENTRYPOINT ["docker-entrypoint.sh"]
# mkdir build && \
# pushd build && \
# cmake3 .. \
# -DCMAKE_INSTALL_PREFIX=/opt/lscsoft/bayeswave \
# -DCMAKE_BUILD_TYPE=DEBUG \
# -DCMAKE_EXPORT_COMPILE_COMMANDS=true && \
# cmake3 --build . -- VERBOSE=1 && \
# cmake3 --build . --target install"]
# Introduction
Dockerfiles in this directory provide examples and convenient tests of
different bayeswave build procedures. This README describes the purpose of
each dockefile.
## lalsuite_from_src.Dockerfile
Build BayesWave against lalsuite installed from source
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