Skip to content

Commit

Permalink
Add override default build hook w/ --network flag
Browse files Browse the repository at this point in the history
  • Loading branch information
wlad committed Sep 11, 2020
1 parent c77dcea commit 131d790
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ COPY ./service/src ./service/src
RUN mvn compile dependency:go-offline

# BUILD EHRBASE (AND STORE ALL DEPENDENCIES)
RUN mkdir -p /home/ehrbase
COPY . .
RUN ls -la ./
RUN mvn package -Dmaven.javadoc.skip=true
Expand Down
3 changes: 2 additions & 1 deletion hooks/pre_build
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash

docker run -e POSTGRES_PASSWORD=postgres -d -p 5432:5432 \
--name ehrdb ehrbaseorg/ehrbase-postgres:latest
--network ehrbase-net \
--name ehrdb ehrbaseorg/ehrbase-postgres:latest

while ! (docker container logs ehrdb | fgrep -q "database system is ready to accept connections");
do sleep 1;
Expand Down

0 comments on commit 131d790

Please sign in to comment.