From ece2b876ebeea48e30c9d7007a8480acbcf907f8 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Fri, 2 Oct 2015 19:48:37 +0200 Subject: README: document how to run the example. --- Makefile | 2 +- README | 19 +++++++++++++++++-- 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 -- cgit