Skip to content

Commit

Permalink
updated dockerfile and entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
purehyperbole committed Jul 25, 2016
1 parent d13cc41 commit ead5739
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ WORKDIR /go/src/github.com/ernestio/monit

RUN make deps && go install

ENTRYPOINT /go/bin/monit
ENTRYPOINT ./entrypoint.sh
7 changes: 7 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env sh

echo "Waiting for NATS"
while ! echo exit | nc postgres 4222; do sleep 1; done

echo "Starting monit"
/go/bin/monit

0 comments on commit ead5739

Please sign in to comment.