Skip to content

Commit

Permalink
Moving things to the background
Browse files Browse the repository at this point in the history
  • Loading branch information
madflojo committed Nov 4, 2023
1 parent 516778a commit e28074b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/load.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Run the Service
run: make run
run: make run-background
- name: Wait for the Service to be ready
run: |
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost/ready)" != "200" ]]; do sleep 5; done
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,14 @@ docker-compose:
sleep 15
docker compose up airport-lookup-example

docker-compose-background:
docker compose up -d mysql
sleep 15
docker compose up -d airport-lookup-example

run: build docker-compose
run-nobuild: docker-compose
run-background: build docker-compose-background

clean:
rm -rf functions/build
Expand Down

0 comments on commit e28074b

Please sign in to comment.