Skip to content

Instantly share code, notes, and snippets.

@jhoblitt
Created April 30, 2019 18:04
Show Gist options
  • Save jhoblitt/715cc2245420d1304728faca185b8943 to your computer and use it in GitHub Desktop.
Save jhoblitt/715cc2245420d1304728faca185b8943 to your computer and use it in GitHub Desktop.
Example of adding `rh-git29` scl to an LSST scipipe docker image
ARG BASE_IMAGE=lsstsqre/centos:7-stack-lsst_distrib-w_2019_17
FROM $BASE_IMAGE
USER root
RUN yum install -y rh-git29
RUN echo -e '#!/bin/bash\nsource scl_source enable rh-git29\n' > /etc/profile.d/rh-git29.sh
RUN chmod 0555 /etc/profile.d/rh-git29.sh
USER lsst
SHELL ["/bin/bash", "-lc"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment