fix(smoke-test): copy monitoring configs to temp directory
Promtail mounts monitoring configs from repo root which fails in Colima: - Copy monitoring/ directory to temp SMOKE_TEST_DATA_DIR - Update promtail volume path to use SMOKE_TEST_DATA_DIR for configs - This ensures all mounts are from accessible temp directories
This commit is contained in:
parent
225ef5bfb5
commit
ce4106a837
2 changed files with 7 additions and 1 deletions
|
|
@ -209,7 +209,7 @@ services:
|
|||
image: grafana/promtail:latest
|
||||
container_name: ml-experiments-promtail
|
||||
volumes:
|
||||
- ${FETCHML_REPO_ROOT:-..}/monitoring/promtail-config.yml:/etc/promtail/config.yml
|
||||
- ${SMOKE_TEST_DATA_DIR:-${FETCHML_REPO_ROOT:-..}/monitoring}/promtail-config.yml:/etc/promtail/config.yml
|
||||
- ${SMOKE_TEST_DATA_DIR:-${FETCHML_REPO_ROOT:-..}/data/dev}/logs:/var/log/app
|
||||
- /var/lib/docker/containers:/var/lib/docker/containers:ro
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
|
|
|
|||
|
|
@ -119,6 +119,9 @@ if [ "$env" = "dev" ]; then
|
|||
"$SMOKE_TEST_DATA_DIR/active" \
|
||||
"$SMOKE_TEST_DATA_DIR/workspaces"
|
||||
|
||||
# Copy monitoring configs to temp directory (required for promtail)
|
||||
cp -r "$repo_root/monitoring" "$SMOKE_TEST_DATA_DIR/"
|
||||
|
||||
# Export for docker-compose to use
|
||||
export SMOKE_TEST_DATA_DIR
|
||||
|
||||
|
|
@ -151,6 +154,9 @@ else
|
|||
"$SMOKE_TEST_DATA_DIR/experiments" \
|
||||
"$SMOKE_TEST_DATA_DIR/active"
|
||||
|
||||
# Copy monitoring configs to temp directory (required for promtail)
|
||||
cp -r "$repo_root/monitoring" "$SMOKE_TEST_DATA_DIR/"
|
||||
|
||||
# Export for docker-compose to use
|
||||
export SMOKE_TEST_DATA_DIR
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue