I haven’t updated the stack build on my Mac for quite some time, as it takes a while. However, I’ve been wanting more recent images for developing on master, and I’d like to be able to stay up to date with the stack without much effort, so when @mwv mentioned some Docker problems in Slack, it triggered an interest in getting that working on my Mac.
I use Homebrew on my Mac, and prefer to use that instead of downloading images from various vendors. So here’s how I installed Docker using Homebrew and used it to run the latest version of the LSST stack:
brew install docker brew install docker-machine brew services start docker-machine brew install virtualbox # Requires SystemPreferences intervention docker-machine create default --virtualbox-cpu-count 6 --virtualbox-memory 8192 # Create "docker" group and put me in it sudo dseditgroup -o create docker sudo dseditgroup -o edit -a price -t user docker # Run this to set environment before running docker eval $(docker-machine env default)
brew install virtualboxcommand requires intervention in the “System Preferences” --> “Security & Privacy”: you need to give permission for the installation.
eval $(docker-machine env default)line needs to be run before you use
docker run; you may want to put it in your
Once Docker’s installed and set up, you can follow the instructions for using the LSST stack images, e.g.:
docker run -ti -v ~/LSST:/home/lsst/LSST lsstsqre/centos:7-stack-lsst_distrib-w_2018_10