From: Art Cancro Date: Wed, 21 Aug 2019 18:50:41 +0000 (-0400) Subject: fine tuning X-Git-Url: https://code.citadel.org/?p=citadel-docker.git;a=commitdiff_plain;h=e5d08c815bbbda67664caf98854e7684b1a6b5b8 fine tuning --- diff --git a/README.txt b/README.txt index f1bf703..dab15a5 100644 --- a/README.txt +++ b/README.txt @@ -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). + +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. + diff --git a/clean.sh b/clean.sh index 51d7c5b..5c6099a 100755 --- 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 - +docker volume list | awk ' { print $2 } ' | xargs docker volume rm diff --git a/run-citadel.sh b/run-citadel.sh new file mode 100755 index 0000000..fa2e60f --- /dev/null +++ b/run-citadel.sh @@ -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