Merge pull request #341 from ericchiang/rm_build_units

*: remove build-units script
This commit is contained in:
Eric Chiang 2016-03-14 13:17:25 -07:00
commit d660dbea8a
3 changed files with 0 additions and 31 deletions

View file

@ -1,9 +0,0 @@
# Deploying
Generate systemd unit files by injecting secrets into the unit file templates located in: `./static/...`.
```
source <path-to-secure>/prod/dex.env.txt
./build-units
```

View file

@ -1,20 +0,0 @@
#!/bin/bash -e
mkdir -p deploy
required=(
${DEX_OVERLORD_DB_URL:?"missing"}
${DEX_OVERLORD_KEY_SECRET:?"missing"}
${DEX_WORKER_DB_URL:?"missing"}
${DEX_WORKER_KEY_SECRET:?"missing"}
)
eval "cat <<EOF
$(<static/dex-worker.service.tmpl)
EOF
" 1> deploy/dex-worker.service
eval "cat <<EOF
$(<static/dex-overlord.service.tmpl)
EOF
" 1> deploy/dex-overlord.service

View file

@ -1,5 +1,3 @@
# example env file for local development to source when using build-units
# dex worker # dex worker
export DEX_WORKER_KEY_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx export DEX_WORKER_KEY_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
export DEX_WORKER_OAUTH_CLIENT_ID=CHANGEME export DEX_WORKER_OAUTH_CLIENT_ID=CHANGEME