Skip to content

Commit

Permalink
Merge pull request letsencrypt#1304 from juniorz/fix-rabbitmq-docker
Browse files Browse the repository at this point in the history
Initialize rabbitmq in Docker entrypoint
  • Loading branch information
jmhodges committed Jan 5, 2016
2 parents be7a701 + 673f927 commit 42e984b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,19 @@ while ! exec 6<>/dev/tcp/0.0.0.0/3306; do
sleep 1
done

# make sure we can reach the rabbitmq
while ! exec 6<>/dev/tcp/0.0.0.0/5672; do
echo "$(date) - still trying to connect to rabbitmq at 0.0.0.0:5672"
sleep 1
done

exec 6>&-
exec 6<&-

# create the database
source $DIR/create_db.sh

# Set up rabbitmq exchange and activity monitor queue
go run cmd/rabbitmq-setup/main.go -server amqp://localhost

$@

0 comments on commit 42e984b

Please sign in to comment.