Skip to content

Commit

Permalink
Add bash to entrypoint.sh to preserve interactive containers
Browse files Browse the repository at this point in the history
  • Loading branch information
KlaasH committed Feb 15, 2017
1 parent 15f9d39 commit 52bad8b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pfb-analysis/scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ psql -U "${NB_POSTGRESQL_USER}" -d "${NB_POSTGRESQL_DB}" <<EOF
SELECT * FROM neighborhood_overall_scores;
EOF

# This will exit immediately when there's no pseudo-TTY but provide a shell if there is,
# so it enables keeping a docker container alive after processing by running it with `-t`
bash

# shutdown postgres
kill $POSTGRES_PROC
wait

0 comments on commit 52bad8b

Please sign in to comment.