Skip to content

Commit

Permalink
Removing local injections when not in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
silverdaz committed Nov 15, 2018
1 parent 5b1b0f3 commit b72977c
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions deploy/bootstrap/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,14 @@ services:
- ./confs/inbox.ini:/etc/ega/conf.ini:ro
- inbox:/ega/inbox
- ../images/inbox/entrypoint.sh:/usr/bin/lega-entrypoint.sh
EOF
if [[ "${DEPLOY_DEV}" = "yes" ]]; then
cat >> ${PRIVATE}/lega.yml <<EOF
- ~/_ega/lega:/home/lega/.local/lib/python3.6/site-packages/lega
- ~/_auth:/root/_auth
EOF
fi
cat >> ${PRIVATE}/lega.yml <<EOF
networks:
- lega-external
- lega-internal
Expand Down Expand Up @@ -435,8 +441,14 @@ services:
volumes:
- inbox:/ega/inbox
- ./confs/ingest.ini:/etc/ega/conf.ini:ro
EOF
if [[ "${DEPLOY_DEV}" = "yes" ]]; then
cat >> ${PRIVATE}/lega.yml <<EOF
- ~/_ega/lega:/home/lega/.local/lib/python3.6/site-packages/lega
- ~/_cryptor/crypt4gh:/home/lega/.local/lib/python3.6/site-packages/crypt4gh
EOF
fi
cat >> ${PRIVATE}/lega.yml <<EOF
networks:
- lega-internal
- lega-private
Expand Down Expand Up @@ -477,8 +489,14 @@ services:
mode: 0400
volumes:
- ./confs/verify.ini:/etc/ega/conf.ini:ro
EOF
if [[ "${DEPLOY_DEV}" = "yes" ]]; then
cat >> ${PRIVATE}/lega.yml <<EOF
- ~/_ega/lega:/home/lega/.local/lib/python3.6/site-packages/lega
- ~/_cryptor/crypt4gh:/home/lega/.local/lib/python3.6/site-packages/crypt4gh
EOF
fi
cat >> ${PRIVATE}/lega.yml <<EOF
networks:
- lega-internal
- lega-private
Expand All @@ -503,7 +521,13 @@ services:
mode: 0600
volumes:
- ./confs/finalize.ini:/etc/ega/conf.ini:ro
EOF
if [[ "${DEPLOY_DEV}" = "yes" ]]; then
cat >> ${PRIVATE}/lega.yml <<EOF
- ~/_ega/lega:/home/lega/.local/lib/python3.6/site-packages/lega
EOF
fi
cat >> ${PRIVATE}/lega.yml <<EOF
networks:
- lega-internal
- lega-private
Expand Down Expand Up @@ -536,7 +560,13 @@ services:
- ./confs/outgest.ini:/etc/ega/conf.ini:ro
- ./outgest.cert:/etc/ega/ssl.cert
- ./outgest.key:/etc/ega/ssl.key
EOF
if [[ "${DEPLOY_DEV}" = "yes" ]]; then
cat >> ${PRIVATE}/lega.yml <<EOF
- ~/_ega/lega:/home/lega/.local/lib/python3.6/site-packages/lega
EOF
fi
cat >> ${PRIVATE}/lega.yml <<EOF
networks:
- lega-external
- lega-internal
Expand Down Expand Up @@ -577,12 +607,19 @@ services:
mode: 0400
volumes:
- ./confs/streamer.ini:/etc/ega/conf.ini:ro
EOF
if [[ "${DEPLOY_DEV}" = "yes" ]]; then
cat >> ${PRIVATE}/lega.yml <<EOF
- ~/_ega/lega:/home/lega/.local/lib/python3.6/site-packages/lega
- ~/_cryptor/crypt4gh:/home/lega/.local/lib/python3.6/site-packages/crypt4gh
EOF
fi
cat >> ${PRIVATE}/lega.yml <<EOF
networks:
- lega-internal
- lega-private
entrypoint: ["gosu", "lega", "lega-streamer"]
EOF

# Adding the secrets
Expand Down

0 comments on commit b72977c

Please sign in to comment.