Skip to content
Merged
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
15 changes: 10 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,19 @@ jobs:

- run:
name: "Run Container"
# Initial setup of db takes longer than usual.
# Run the db service first, then wait 10 seconds
# for the rest.
command: |
docker-compose up -d db &&
sleep 10s &&
docker-compose up -d db
until bash -c "echo > /dev/tcp/127.0.0.1/3306" 2>/dev/null; do
echo "Waiting for db..."
sleep 2
done
docker-compose up -d

- run:
name: Capture web container logs on failure
command: docker-compose logs web
when: on_fail

- run:
name: "Rspec"
command: |
Expand Down
Loading