You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -24,61 +24,66 @@ Start Docker Desktop (Applications folder) : it will start the docker daemon.
24
24
25
25
## Building and running Docker container
26
26
27
-
### Build Docker image
27
+
### Build image and create container
28
28
29
-
#### On Mac with an Apple Silicon (ARM64) processor
29
+
#### Update configuration
30
+
The file `compose.yaml` contains instructions to mount host
31
+
directories on the container.
32
+
Typically, when using SeiSComP GUI, you would need :
33
+
* a directory containing `.cfg` personal configuration files for each application
34
+
* a directory containing map tiles
35
+
* directories containing travel time files for locators
30
36
31
-
Docker Desktop can use Rosetta 2 to emulate x86_64 images on Apple Silicon Macs. Here's how to enable it :
37
+
By default, configuration files are expected on `$HOME/seiscomp-gui/cfg` on the host computer. They are mounted on `$HOME/.seiscomp` in the container.
38
+
By default, map tiles directory is expected on `$HOME/seiscomp-gui/maps` on the host computer. It is mounted on `/opt/seiscomp/share/maps` in the container.
39
+
By default, NonLinLoc configuration and time travel files are expected on `$HOME/seiscomp-gui/nll` on the host computer. It is mounted on `/opt/seiscomp/share/nll` in the container.
40
+
By default, Hypo71PC configuration files and velocity models are expected to be found on `$HOME/seiscomp-gui/hypo71` on the host computer. It is mounted on `/opt/seiscomp/share/hypo71` in the container.
32
41
33
-
- Open Docker Desktop.
34
-
- Go to Settings > General.
35
-
- Enable the option "Use Rosetta for x86/amd64 emulation on Apple Silicon".
42
+
You can update the host path for each volume or comment the unused ones in the `compose.yaml` file, section `volumes`.
Create and start a simple container without base configuration :
56
+
### Stop the container
54
57
55
58
```bash
56
-
docker run -d -p 2222:22 --name scolv seiscomp-version6:latest
59
+
docker compose stop
57
60
```
58
61
59
-
#### Pre-configured environment
60
-
61
-
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:
0 commit comments