Skip to content
Snippets Groups Projects
Commit 3c333bb1 authored by James Alexander Clark PhD's avatar James Alexander Clark PhD
Browse files

Copy src into place - cloning from the current commit doesn't work in all use cases

parent d249dbc0
Branches master
No related tags found
No related merge requests found
......@@ -12,16 +12,21 @@ LABEL org.label-schema.vcs-url="https://git.ligo.org/lscsoft/bayeswave"
LABEL org.label-schema.build-date="${BUILD_DATE}"
LABEL org.label-schema.vcs-ref="${CI_COMMIT_SHA}"
# Install the current commit
RUN git clone https://git.ligo.org/james-clark/bayeswave.git && \
cd bayeswave && \
git checkout ${CI_COMMIT_SHA} && \
./build.sh && \
pip install ./BayesWaveUtils && \
cd .. && rm -rf bayeswave
# Copy all the source into /tmp which we will empty later
COPY . /tmp
# No longer need git
RUN yum remove -y git
RUN cd /tmp && \
mkdir -p build && \
pushd build && \
cmake .. \
-DCMAKE_INSTALL_PREFIX= \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_EXPORT_COMPILE_COMMANDS=true && \
cmake --build . -- VERBOSE=1 && \
cmake --build . --target install && \
popd && \
pip install --no-cache /tmp/BayesWaveUtils && \
rm -rf /tmp/*
## Directories we may want to bind
RUN mkdir -p /cvmfs /hdfs /hadoop /etc/condor /test
......
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