fine tuning
authorArt Cancro <ajc@citadel.org>
Wed, 21 Aug 2019 18:50:41 +0000 (14:50 -0400)
committerArt Cancro <ajc@citadel.org>
Wed, 21 Aug 2019 18:50:41 +0000 (14:50 -0400)
README.txt
clean.sh
run-citadel.sh [new file with mode: 0755]

index f1bf703b7131ff58e99f6d031dc1175149de9be1..dab15a58b337a26b4d37e704acd66f5067c86897 100644 (file)
@@ -21,3 +21,9 @@ docker build .
 The resulting image can be run as a standalone container.  It will expose
 ports for all of the services provided by Citadel Server, and two instances
 of WebCit (HTTP and HTTPS).
 The resulting image can be run as a standalone container.  It will expose
 ports for all of the services provided by Citadel Server, and two instances
 of WebCit (HTTP and HTTPS).
+
+Use the "run-citadel.sh" script to start the container, or use it to learn
+what information needs to be supplied.  In particular, you need to map a
+persistent volume to the data directory, otherwise you will lose all of your
+data when the container is upgraded.
+
index 51d7c5b2afdee07c8072265b256a43cd98b6ef8b..5c6099a8f7ee7fe1c358596a5381c5f98b6ed5a6 100755 (executable)
--- a/clean.sh
+++ b/clean.sh
@@ -1,4 +1,4 @@
 #!/bin/bash
 docker ps -a | awk ' { print $1 } ' | xargs docker rm
 docker image list | awk ' { print $3 } ' | xargs docker image rm
 #!/bin/bash
 docker ps -a | awk ' { print $1 } ' | xargs docker rm
 docker image list | awk ' { print $3 } ' | xargs docker image rm
-
+docker volume list | awk ' { print $2 } ' | xargs docker volume rm
diff --git a/run-citadel.sh b/run-citadel.sh
new file mode 100755 (executable)
index 0000000..fa2e60f
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+docker run \
+       --name citadel \
+       -v citadel-data:/usr/local/citadel/data \
+       -v citadel-files:/usr/local/citadel/files \
+       -v citadel-keys:/usr/local/citadel/keys \
+       -d \
+       $1