amalgame/commit

minor

authorJacco van Ossenbruggen
Mon Sep 11 17:27:52 2017 +0200
committerJacco van Ossenbruggen
Mon Sep 11 17:27:52 2017 +0200
commit74258c14b57ad3b5ca5d1b18994b27af96bd70cf
tree7b1898cf4edc5b4fadc72ecf14b16728ebc02fa1
parentad9b055265934ebae31cca0c78bb61184dd8262f
Diff style: patch stat
diff --git a/docker/run.sh b/docker/run.sh
index 558cc23..1c0847e 100755
--- a/docker/run.sh
+++ b/docker/run.sh
@@ -1,10 +1,17 @@
 #!/bin/bash
+#
+# Run amalgame cointainer by mounting the current working directory ($PWD) as the project directory.
+# The default settings run:
+#   - the processes in the countainer under the id and group of the current user
+#   - map host port 3020 on container port 3020
+
 VERSION=latest
 APP=amalgame
 REPO=jrvosse
-HPORT=3020 # Port on host computer
-CPORT=3020 # Port on docker container running ClioPatria
-sudo docker run \
+HPORT=3020 # Port exposed on host computer
+CPORT=3020 # Port used on docker container running ClioPatria/amalgame
+SUDO=
+$SUDO docker run \
 	-v $PWD:/opt/project \
 	-v /etc/group:/etc/group:ro \
 	-v /etc/passwd:/etc/passwd:ro \