From e28074bb65a8788f4449c9e007ff0f09de3a76a0 Mon Sep 17 00:00:00 2001 From: Benjamin Cane Date: Sat, 4 Nov 2023 09:36:08 -0700 Subject: [PATCH] Moving things to the background --- .github/workflows/load.yml | 2 +- Makefile | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/load.yml b/.github/workflows/load.yml index eb684cd..05125ee 100644 --- a/.github/workflows/load.yml +++ b/.github/workflows/load.yml @@ -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 diff --git a/Makefile b/Makefile index dec1587..2b092a8 100644 --- a/Makefile +++ b/Makefile @@ -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