From c1f83bf8e91a0809ac9519ba1b56afeaa612ae60 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Tue, 22 Dec 2020 05:57:51 +0100 Subject: [PATCH] Add instructions for creating .env file --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dd6f47c..10a7a11 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,13 @@ python3 -m pip install --user -U docker-compose ## Usage + +```shell +git clone https://git.dittberner.info/jan/cacert-devsetup.git +cd cacert-devsetup +mr checkout +``` + Create a .env file that defines the following variables Variable | Usage @@ -30,9 +37,7 @@ Variable | Usage `MYSQL_APP_PASSWORD` | Database application password ```shell -git clone https://git.dittberner.info/jan/cacert-devsetup.git -cd cacert-devsetup -mr checkout +echo -e "MYSQL_ROOT_PASSWORD=$(openssl rand -base64 18)\nMYSQL_APP_USER=cacert_dev\nMYSQL_APP_PASSWORD=$(openssl rand -base64 18)" > .env ./setup_test_ca.sh docker-compose up ```