Skip to content

Commit

Permalink
Merge pull request #4 from abretaud/search_noinstall
Browse files Browse the repository at this point in the history
Fix startup error when INSTALL_CHADO_SCHEMA == 0
  • Loading branch information
hexylena committed Mar 21, 2017
2 parents a2fc76a + 63a6110 commit 9423bb4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,5 @@ RUN perl Makefile.PL GMOD_ROOT=/usr/share/gmod/ DEFAULTS=1 RECONFIGURE=1 && \

COPY load_schema.sh /docker-entrypoint-initdb.d/00-load_schema.sh
COPY load_yeast.sh /docker-entrypoint-initdb.d/01-load_yeast.sh
COPY search.sql /docker-entrypoint-initdb.d/02-search.sql
COPY search.sh /docker-entrypoint-initdb.d/02-search.sh
COPY search.sql /search.sql
5 changes: 5 additions & 0 deletions search.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
: ${INSTALL_CHADO_SCHEMA:=1}
if [[ $INSTALL_CHADO_SCHEMA -eq 1 ]]; then
psql --username postgres --dbname "$POSTGRES_DB" < /search.sql
fi

0 comments on commit 9423bb4

Please sign in to comment.