SeisComP scolv GUI utility in a docker container
Install the latest version of XQuartz from : https://www.xquartz.org/
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install docker --cask
brew install docker-buildx
Start Docker Desktop (Applications folder) : it will start the docker daemon.
Docker Desktop can use Rosetta 2 to emulate x86_64 images on Apple Silicon Macs. Here's how to enable it :
- Open Docker Desktop.
- Go to Settings > General.
- Enable the option "Use Rosetta for x86/amd64 emulation on Apple Silicon".
Then start building the image :
docker buildx build -t seiscomp-version6:latest --platform linux/amd64 .
docker build -t seiscomp-version6:latest .
Create and start a simple container without base configuration :
docker run -d -p 2222:22 --name scolv seiscomp-version6:latest
You can create a "seiscomp" folder and mount it on the container. For example, assuming you have a folder containing the nll configuration and OpenStreetMap maps on your Mac's hard drive in the directory /HOST/PATH/TO/seiscomp/share/, you can create and start a preconfigured container:
docker run -d -p 2222:22 \
-v /HOST/PATH/TO/seiscomp/share/nll:/opt/seiscomp/share/nll \
-v /HOST/PATH/TO/seiscomp/share/maps/OCMap:/opt/seiscomp/share/maps/OCMap \
-v /HOST/PATH/TO/seiscomp/etc:/home/sysop/.seiscomp \
--name scolv seiscomp-version6:latest
ssh -Y -p 2222 sysop@localhost
scolv
This project was inspired by Fred Massin. Many thanks!!