Skip to content

Commit

Permalink
Merge pull request #35 from jrjohnson/dump-env-to-env
Browse files Browse the repository at this point in the history
Dump ENV variables into symfony
  • Loading branch information
jrjohnson authored Aug 9, 2019
2 parents adf28a6 + ebae072 commit 494b218
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ssh-admin/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/bin/bash
set -euf -o pipefail

# Export out ENV from docker into a place where SSH users can read them
/bin/echo 'Dumping environmental variables to /etc/environment'
/usr/bin/env | /bin/grep _ >> /etc/environment
# Export out ENV out so symfony can read them
/bin/echo 'Dumping ILIOS environmental variables for symfony'
/usr/bin/env | /bin/grep APP_ENV >> /var/www/ilios/.env.local
/usr/bin/env | /bin/grep ILIOS_ >> /var/www/ilios/.env.local
/usr/bin/composer --working-dir=/var/www/ilios dump-env prod

/bin/echo "Entrypoint ssh-admin container"

Expand Down

0 comments on commit 494b218

Please sign in to comment.