Skip to content

Commit 90f0910

Browse files
authored
Merge pull request #47 from molssi-seamm/dev
Improving Docker installation documentation
2 parents 460fc91 + 8d1aee7 commit 90f0910

File tree

4 files changed

+66
-38
lines changed

4 files changed

+66
-38
lines changed
0 Bytes
Binary file not shown.
121 Bytes
Binary file not shown.

docs/getting_started/installation/seamm-environment.rst

Lines changed: 34 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,34 +22,22 @@ it easier to start in the future.
2222
Running this multiple times will do nothing if the Dashboard and JobServer are already
2323
running. If the are stopped, it will start them.
2424

25-
Linux
26-
-----
27-
You can make an alias in your shell to start the SEAMM GUI. Add the following line to
28-
your `~/.bashrc` file::
29-
30-
alias Dashboard='docker compose --file seamm-environment.yaml up -d'
25+
.. Note::
26+
The Dashboard and JobServer are running in Docker, and you can see their status in the
27+
Docker Desktop window.
3128

32-
You can then start the Dashboard and Jobserver by typing *Dashboard* in a terminal window.
33-
34-
Windows
35-
-------
36-
You can make a shortcut to start the Dashboard and JobServer. Right-click on the desktop and select
37-
"New" and then "Shortcut". In the dialog box that appears, enter the following command::
38-
39-
C:\Windows\System32\wsl.exe -d docker-desktop -u root -- docker compose --file seamm-environment.yaml up -d
40-
41-
You can then double-click on the shortcut to start the Dashboard and Jobserver.
29+
.. image:: images/docker-desktop.png
30+
:alt: Docker Desktop
4231

43-
.. Warning::
44-
We have not yet installed on SEAMM on Windows using Docker. We are working on this!
45-
Hopefully the above instruction will work, but we have not tested it yet.
32+
.. Note::
33+
This completes the installation on MacOS.
4634

4735
General
4836
-------
4937
.. Important::
5038
The directory ~/SEAMM needs to exist! If it doesn't, please create it!
5139

52-
Once you have *Docker* installer, you can start the SEAMM environment by running the
40+
Once you have *Docker* installed, you can start the SEAMM environment by running the
5341
following command in the terminal::
5442

5543
docker compose --file seamm-environment.yaml up -d
@@ -113,5 +101,31 @@ You should see output like this::
113101
The Dashboard and JobServer should now be running. You can check the Dashboard at
114102
http://localhost:55055, and also can use the Docker Desktop window to see their status:
115103

104+
Linux
105+
-----
106+
.. Warning::
107+
We have not yet installed on SEAMM on Linux using Docker. We are working on this!
108+
Hopefully these instructions will work, but we have not tested it yet.
109+
110+
You can make an alias in your shell to start the SEAMM GUI. Add the following line to
111+
your `~/.bashrc` file::
112+
113+
alias Dashboard='docker compose --file seamm-environment.yaml up -d'
114+
115+
You can then start the Dashboard and Jobserver by typing *Dashboard* in a terminal window.
116+
117+
Windows
118+
-------
119+
.. Warning::
120+
We have not yet installed on SEAMM on Windows using Docker. We are working on this!
121+
Hopefully these instructions will work, but we have not tested it yet.
122+
123+
You can make a shortcut to start the Dashboard and JobServer. Right-click on the desktop and select
124+
"New" and then "Shortcut". In the dialog box that appears, enter the following command::
125+
126+
C:\Windows\System32\wsl.exe -d docker-desktop -u root -- docker compose --file seamm-environment.yaml up -d
127+
128+
You can then double-click on the shortcut to start the Dashboard and Jobserver.
129+
116130
.. image:: images/docker-desktop.png
117131
:alt: Docker Desktop

docs/getting_started/installation/starting-seamm.rst

Lines changed: 32 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ MacOS
1212
-----
1313
If you are using MacOS you can install an application for the SEAMM
1414
GUI. Download :download:`SEAMM.zip <./SEAMM.zip>` and unzip it in your personal
15-
Applications folder -- the one insde your home directory. You can do this in Finder by
15+
Applications folder -- the one inside your home directory. You can do this in Finder by
1616
dragging the file to the Applications directory under your home folder. Then
1717
double-click on SEAMM.zip to expand it, creating SEAMM.app. You can then double-click on
1818
SEAMM.app to start the SEAMM GUI. You can also drag the SEAMM.app to your dock to make
@@ -33,19 +33,46 @@ it easier to start in the future.
3333

3434
You will need to do this each time you start *XQuartz*. If you want it to run
3535
automatically, add a line with *xhost + 127.0.0.1* to the file
36-
`~/.xinitrc.d/50-xhost.sh`. You may need to create the directory and file.
36+
`~/.xinitrc.d/50-xhost.sh`. You may need to create both the directory and file.
37+
38+
.. Note:
39+
If you want to run SEAMM from a terminal window, you can make an alias to start the
40+
SEAMM GUI. Add the following line to your `~/.bashrc` file::
41+
42+
seamm='~/Applications/SEAMM.app/Contents/MacOS/SEAMM'
43+
44+
You can then start the SEAMM GUI by typing *seamm* in a terminal window. You can also
45+
add a flowchart file to open by adding the name of the file to the command line, but
46+
it must be in the current directory or below, and you must use a relative path.
3747
3848
Linux
3949
-----
40-
You can make an alias in your shell to start the SEAMM GUI. Add the following line to
50+
.. Warning:
51+
The SEAMM installation using Docker on Linux has not yet been thoroughly tested. If
52+
you run into problems, please contact us! It will help us to improve the installation
53+
and find out if there are differences between different versions of Linux.
54+
55+
Also, you may need to run `xhost + local:` or `xhost + 127.0.0.1` to allow the SEAMM
56+
GUI to connect to the X server. You can add this to your `~/.bashrc` file to run it
57+
automatically each time you start a terminal window.
58+
59+
You can make these aliases in your shell to start the SEAMM GUI. Add the following line to
4160
your `~/.bashrc` file::
4261

43-
alias SEAMM='docker run --pull always --rm --name SEAMM --env "DISPLAY=host.docker.internal:0" --network seamm-network -v ~/SEAMM:/root/SEAMM -v ~/.seamm.d:/root/.seamm.d ghcr.io/molssi-seamm/seamm:latest &'
62+
alias seamm-standalone='docker run --pull always -v /tmp/.X11-unix/:/root/.X11-unix/ --net=host --rm --name SEAMM --env "DISPLAY" -v ~/SEAMM:/root/SEAMM -v ~/.seamm.d:/root/.seamm.d ghcr.io/molssi-seamm/seamm:latest &'
63+
alias seamm='docker run --pull always -v /tmp/.X11-unix/:/root/.X11-unix/ --net=host --network seamm-netowrk --rm --name SEAMM --env "DISPLAY" -v ~/SEAMM:/root/SEAMM -v ~/.seamm.d:/root/.seamm.d ghcr.io/molssi-seamm/seamm:latest &'
4464

45-
You can then start the SEAMM GUI by typing *SEAMM* in a terminal window.
65+
You can then start the SEAMM GUI by typing *seamm-standalone* or *seamm* in a terminal
66+
window. The standalone version can only connect to Dashboards on other machines. If you
67+
are running the SEAMM Dashboard locally, using Docker, and want to access it, you will
68+
need the second version, *seamm*.
4669

4770
Windows
4871
-------
72+
.. Warning:
73+
We have not tested the SEAMM installation using Docker on Windows. If you run into
74+
problems, please contact us!
75+
4976
You can make a shortcut to start the SEAMM GUI. Right-click on the desktop and select
5077
"New" and then "Shortcut". In the dialog box that appears, enter the following command::
5178

@@ -58,17 +85,4 @@ You can then double-click on the shortcut to start the SEAMM GUI.
5885
We have not yet installed on SEAMM on Windows using Docker. We are working on this!
5986
Hopefully the above instruction will work, but we have not tested it yet.
6087

61-
General
62-
-------
63-
Once you have *Docker* installed, you can start the SEAMM GUI by running the following
64-
command in a terminal window::
65-
66-
docker run --pull always --rm --name SEAMM \
67-
--env "DISPLAY=host.docker.internal:0" \
68-
--network seamm-network \
69-
-v ~/SEAMM:/root/SEAMM \
70-
-v ~/.seamm.d:/root/.seamm.d \
71-
ghcr.io/molssi-seamm/seamm:latest &
72-
73-
7488
.. _XQuartz: https://www.xquartz.org

0 commit comments

Comments
 (0)