Skip to content

Commit 6a3b7f2

Browse files
authored
updated docker usage (#34)
* updated docker usage * update to mamba
1 parent 1b7dfc2 commit 6a3b7f2

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

docs/develop/Docker.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,30 @@ A complete setup of the mswms server with demodata and the mscolab server with a
1212
mss ui can be started by a command.
1313

1414

15-
## stable
15+
## released version
1616
runs mswms with demodata, mscolab and the msui
1717

1818
$ xhost +local:docker
1919
$ docker run --net=host -ti --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix openmss/mss MSS
2020

21+
You can afterwards load data from the wms servers into the msui or create an account on the mscolab server in the container.
2122

23+
> ![image](/assets/run_mss_docker.png)
24+
25+
26+
## Running pytest inside the docker container testing-develop
27+
We mount the MSS workdir into the docker container and use an env
28+
var to access the directory for running pytest on that dir.
29+
30+
~/workspace/MSS$ docker pull openmss/testing-develop # get recent version
31+
~/workspace/MSS$ docker run -it --mount src=`pwd`,target=`pwd`,type=bind -e MSSDIR=`pwd` openmss/testing-develop # mount dir into container, create env var MSSDIR with dir
32+
(base) root@78f42ac9ded7:/# cd $MSSDIR # change directory to the mounted dir
33+
(base) root@78f42ac9ded7:/# mamba activate mss-develop-env # activate env
34+
(mss-develop-env) root@78f42ac9ded7:/# xvfb-run pytest -vv -n 6 --dist loadfile tests # run pytest
2235

23-
## develop
2436

25-
runs mswms with demodata, mscolab and the msui
2637

27-
$ xhost +local:docker
28-
$ docker run --net=host -ti --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix openmss/mss-dev MSS
2938

3039

3140

32-
You can afterwards load data from the both servers into the msui.
3341

34-
> ![image](/assets/run_mss_docker.png)

0 commit comments

Comments
 (0)