ソースを参照

readme update for docker deployment

George S. Baugh 5 年 前
コミット
8082567bbd
2 ファイル変更9 行追加6 行削除
  1. 7 4
      Readme.md
  2. 2 2
      dockerdeploy.sh

+ 7 - 4
Readme.md

@@ -10,10 +10,13 @@ Deployment is currently:
 * open tmux or screen
 * `starman -p $PORT www/server.psgi`
 
-A Dockerfile is provided for your convenience in building images based on this:
-`sudo docker build -t troglodyne:tcms`
-`sudo docker run -dp 5001:5001 troglodyne/tcms:latest starman -p 5001 www/server.psgi`
-
+A Dockerfile and deployment scripts are provided for your convenience in building/running containers based on this:
+```
+# Build and run the server
+./docker-deploy.sh
+# Extract configuration & local data, then spin down the server
+./docker-exfil.sh
+```
 The user guide is self-hosted; After you first login, hit the 'Manual' section in the backend.
 
 Rate-Limiting is expected to be handled at the level of the webserver proxying requests to this application.

+ 2 - 2
dockerdeploy.sh

@@ -1,3 +1,3 @@
 #!/bin/sh
-docker build -t troglodyne/tcms .
-docker run -dp 5000:5000 troglodyne/tcms:latest /usr/bin/starman -p 5000 www/server.psgi
+sudo docker build -t troglodyne/tcms .
+sudo docker run -dp 5000:5000 troglodyne/tcms:latest /usr/bin/starman -p 5000 www/server.psgi