summaryrefslogtreecommitdiff
path: root/scripts/docker/README.md
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2016-05-30 13:45:51 -0300
committerdrebs <drebs@leap.se>2016-06-06 21:40:37 -0300
commitf829832457237b7342e510e4112f66819be3ab3d (patch)
treefc682e18c9a1926d1c1198bd54bfeb70d82f1d65 /scripts/docker/README.md
parent3e4870f8bd6186f3d0821f392a0dafc5d5247ad4 (diff)
[test] add files to create docker image
Diffstat (limited to 'scripts/docker/README.md')
-rw-r--r--scripts/docker/README.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/scripts/docker/README.md b/scripts/docker/README.md
new file mode 100644
index 00000000..d15129fa
--- /dev/null
+++ b/scripts/docker/README.md
@@ -0,0 +1,30 @@
+Soledad Docker Images
+=====================
+
+The files in this directory help create a docker image that is usable for
+running soledad server and client in an isolated docker context. This is
+especially useful for testing purposes as you can limit/reserve a certain
+amount of resources for the soledad process, and thus provide a baseline for
+comparison of time and resource consumption between distinct runs.
+
+Check the `Dockerfile` for the rules for building the docker image.
+
+Check the `Makefile` for example usage of the files in this directory.
+
+
+Environment variables for server script
+---------------------------------------
+
+If you want to run the image for testing you may pass the following
+environment variables for the `files/start-server.sh` script for checking out
+a specific branch on the soledad repository:
+
+ SOLEDAD_REMOTE - a git url for a remote repository that is added at run time
+ to the local soledad git repository.
+
+ SOLEDAD_BRANCH - the name of a branch to be checked out from the configured
+ remote repository.
+
+Example:
+
+ docker run leap/soledad:1.0 /usr/local/soledad/start-server.sh