Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: wait for restroom to be up before ending #5

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM docker:stable
RUN apk add busybox-extras
COPY start-restroom.sh /start-restroom.sh
RUN chmod +x /start-restroom.sh
ADD contracts /contracts
Expand Down
6 changes: 5 additions & 1 deletion start-restroom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ if [[ "$FILES" != "" ]]; then
fi

docker run --name $RESTROOM_CONTAINER_NAME --publish 3000:3000 $FILES_PARAMS $LOGGER_PARAMS -v "$CONTRACTS":"/app/contracts" --detach ghcr.io/dyne/restroom-mw:latest
sleep 7

while ! `echo -e "\x1dclose\x0d" | telnet localhost 3000 >/dev/null 2>/dev/null`; do
echo -e "\x1dclose\x0d" | telnet localhost 3000
sleep 1
done
Loading