updated build pipeline

This commit is contained in:
Jan Kieseler
2024-05-07 13:58:10 +02:00
parent 5acbe7ec66
commit a7c454648d
3 changed files with 85 additions and 52 deletions
+15 -3
View File
@@ -81,10 +81,22 @@ RUN apt-get install -y tk # for dawn
RUN python3 -m pip install jupyterlab jupyterhub==3.1.1 batchspawner
RUN ln -s /usr/bin/python3 /usr/bin/python
#finally the package
ARG INCUBATOR_VER
RUN python3 -m pip install torch-scatter -f https://data.pyg.org/whl/torch-2.1.0+cu118.html
#finally the package; use the commit hash to check out the correct version and only get them here, such that the rest can be cached
ARG BUILD_DATE
LABEL org.label-schema.build-date=$BUILD_DATE
ARG COMMIT
ARG USER
# copy minicalosim and checkout the correct commit
ADD minicalosim /root/minicalosim
RUN cd && cd minicalosim && mkdir -p build && cd build && cmake ../ && make -j4 &&\
RUN cd /root/minicalosim && git checkout $COMMIT && \
mkdir -p build && cd build && rm -rf * && cmake ../ && make -j4 &&\
cp minicalo* ../bind/G4Calo.py /usr/local/lib/python3.8/dist-packages/
# clean up
RUN rm -rf /root/minicalosim