Skip to content
Snippets Groups Projects
Commit 349bc382 authored by Patrick Godwin's avatar Patrick Godwin
Browse files

allow executables to be available/usable in conda images

parent 018faf3a
No related branches found
No related tags found
1 merge request!286conda: update lockfiles, resolve issues with Singularity images
Pipeline #446003 passed with warnings
......@@ -78,6 +78,11 @@ RUN . /opt/conda/etc/profile.d/conda.sh && \
make install -j$NUM_CORES
RUN rm -rf gstlal-inspiral
# Fix shebangs on executables
RUN . /opt/conda/etc/profile.d/conda.sh && \
conda activate gstlal-$CONDA_ENV && \
sed -i.tmp "s@/usr/bin/env python3@$CONDA_PREFIX/bin/python@g" ${CONDA_PREFIX}/bin/gstlal_*
# Run stage
FROM $CI_REGISTRY_IMAGE/dependencies/conda-$CONDA_ENV:$CI_COMMIT_REF_NAME AS run
......@@ -93,6 +98,7 @@ COPY .gitlab-ci.conda_entrypoint.sh /bin/entrypoint.sh
RUN chmod +x /bin/entrypoint.sh
# Export environment variables
ENV PATH="/opt/conda/envs/gstlal-$CONDA_ENV/bin:${PATH}"
ENV PKG_CONFIG_PATH /opt/conda/envs/gstlal-$CONDA_ENV/lib/pkgconfig
ENV GST_PLUGIN_PATH /opt/conda/envs/gstlal-$CONDA_ENV/lib/gstreamer-1.0
ENV GSTLAL_FIR_WHITEN 0
......
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