From 8f21b8d44abbaa92ebad812fc13aa0f73c8038c1 Mon Sep 17 00:00:00 2001 From: Amandus Butzer Date: Thu, 21 Mar 2024 14:30:34 +0100 Subject: [PATCH] ci(docker-build-and-test): add elevation_cache volume --- .github/workflows/docker-build-and-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-build-and-test.yml b/.github/workflows/docker-build-and-test.yml index 34f41ada60..7b69db1eac 100644 --- a/.github/workflows/docker-build-and-test.yml +++ b/.github/workflows/docker-build-and-test.yml @@ -129,7 +129,7 @@ jobs: # Stop the compose setup and continue with docker run docker compose down # Start the container with the test image and the raw docker run command - docker run -it --user $UID -d -p 8080:8082 -v $(pwd)/graphs:/home/ors/graphs -v $(pwd)/config:/home/ors/config --name ors-instance ${{ needs.prepare_environment.outputs.test_image_name }} + docker run -it --user $UID -d -p 8080:8082 -v $(pwd)/graphs:/home/ors/graphs -v $(pwd)/config:/home/ors/config -v $(pwd)/ors-api/src/test/files/elevation:/home/ors/elevation_cache --name ors-instance ${{ needs.prepare_environment.outputs.test_image_name }} # Check for health to turn 200 after the graphs are build and spring-boot completely started ./.github/utils/url_check.sh 127.0.0.1 8080 /ors/v2/health 200 ${{ env.HEALTH_WAIT_TIME }} # Check for correct preflight settings to avoid CORS issues with ORIGIN wildcard from the example config