Commit 65800e0a authored by Abhishek's avatar Abhishek
Browse files

Update .gitlab-ci.yml file

parent 2eece07f
Pipeline #11808 passed with stage
in 6 minutes and 13 seconds
...@@ -29,6 +29,14 @@ run_full_automation: ...@@ -29,6 +29,14 @@ run_full_automation:
- apk add --no-cache curl docker-compose bash jq - apk add --no-cache curl docker-compose bash jq
- until docker info > /dev/null 2>&1; do echo "Waiting for Docker daemon..."; sleep 3; done - until docker info > /dev/null 2>&1; do echo "Waiting for Docker daemon..."; sleep 3; done
# --- THIS IS THE FIX ---
# 1. Explicitly create the named volume so we know it exists.
- docker volume create cota-infra_dta_tests_data
# 2. Run a temporary container that mounts this volume and changes the ownership
# of the directory to user 137, which is the 'appuser' inside the backend container.
- echo "Setting permissions on dta_tests_data volume..."
- docker run --rm -v cota-infra_dta_tests_data:/data alpine chown 137:137 /data
script: script:
# --- THIS IS THE FIX --- # --- THIS IS THE FIX ---
# Create a .env file on the fly. Docker Compose will automatically read this # Create a .env file on the fly. Docker Compose will automatically read this
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment