summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2015-10-02 19:48:37 +0200
committerChristian Heimes <christian@python.org>2015-10-02 19:48:37 +0200
commitece2b876ebeea48e30c9d7007a8480acbcf907f8 (patch)
tree8015a8b9cf193745bd05bc85dd1b9dbc21665903
parent33d6ae23315ae98b9b1d2692cf2d7618adb0710a (diff)
downloadgustodia-ece2b876ebeea48e30c9d7007a8480acbcf907f8.tar.gz
gustodia-ece2b876ebeea48e30c9d7007a8480acbcf907f8.tar.xz
gustodia-ece2b876ebeea48e30c9d7007a8480acbcf907f8.zip
README: document how to run the example.
-rw-r--r--Makefile2
-rw-r--r--README19
2 files changed, 18 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 534ad1f..1e63e9b 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ CUSTODIA=${VENV}/bin/custodia
REQUIREMENTS=cryptography jwcrypto git+https://github.com/simo5/custodia
CURL_CMD=curl --unix-socket server_socket -H "REMOTE_USER: user"
-all: ${CUSTODIA}
+all: ${CUSTODIA} gustodia
${VENV}:
virtualenv --python=${PYTHON} ${VENV}
diff --git a/README b/README
index 830d2fd..336165b 100644
--- a/README
+++ b/README
@@ -1,7 +1,22 @@
+Custodia Docker entrypoint
+==========================
+
+Firt shell
+----------
+$ sudo dnf install golang make python-virtualenv openssl-devel python-devel
$ make run_server
+Second shell
+------------
$ make init_db
$ make example
-curl --unix-socket server_socket -H "REMOTE_USER: user" http://localhost/secrets/tests/mysecret
-
+Output
+------
+env -i EXAMPLE=foo CUSTODIA_SECRET_DB_PASSWORD=tests/mysecret \
+ ./gustodia ./entrypoint.sh apache
+arg0: ./entrypoint.sh
+args: apache
+Env:
+DB_PASSWORD=SuperSecretPassword
+EXAMPLE=foo