I’m looking at the Docker images available here, Docker Hub
but since I want to use LSST software along with other software, I want to add LSST to my existing Docker image, not start from scratch.
I tried building from a Debian-based Docker image, and the newinstall.sh script reports an error:
prefix: /opt/conda/envs/lsst-scipipe-0.6.0
./newinstall.sh: line 265: /etc/redhat-release: No such file or directory
Configured EUPS_PKGROOT: Index of /stack/src
Creating startup scripts (bash) … done.
It does seem to finish installing, but at the end it prints:
and just stalls – that step of my Docker build never completes.
I’m just doing
RUN curl -OL https://raw.githubusercontent.com/lsst/lsst/master/scripts/newinstall.sh
RUN chmod 755 newinstall.sh
RUN ./newinstall.sh -b -t -P /opt/conda
The error about redhat-release should not matter. I will remove that in the future.
I’m not sure why your last RUN step is not terminating. The newinstall.sh script should just exit (fall off the end) after printing the welcome message.
Weirdly, when I went to “docker build” again, it acted as though it did finish – it said “using cache” and continued to the next line of my Dockerfile. So I don’t know what was going on there; maybe operator error!
Also, is it possible to install a smaller subset of packages, like say I only need to be able to read afwImage.Exposure(‘filename.fits’), is there a way I can get just afw and its dependencies? eg something smaller than “lsst_distrib” in
eups distrib install -t v22_0_0 lsst_distrib
?
This is because the bucket-to-Web-site translator is very picky about trailing slashes. I think you will find it all works if you go to https://eups.lsst.codes/stack/src/ instead.
You can definitely do eups distrib install -t v22_0_1 afw. (Note that v22.0.1 is slightly preferred; it has fixes for macOS but should be identical to v22.0.0 for Linux, as you’re using.)
Here is a Dockerfile that builds LSST 18.1.0 (actually, just up to pipe_drivers) using a script. LSST 18 is rather old these days (22.0.1 was just recently released), but I mention it since you might be able to upgrade it quickly.