fix(deployments): fix docker-compose build context paths
Fix build context resolution in smoke test scripts:
- docker-compose.dev.yml: Use ${FETCHML_REPO_ROOT:-..} for api-server and worker
- docker-compose.prod.smoke.yml: Simplify dockerfile path (remove redundant FETCHML_REPO_ROOT)
Previously used 'context: ..' which resolved incorrectly when docker-compose
was run with --project-directory. Now consistently uses FETCHML_REPO_ROOT env var
for proper path resolution in both dev and prod smoke tests.
This commit is contained in:
parent
6fc2e373c1
commit
2a41032414
2 changed files with 3 additions and 3 deletions
|
|
@ -33,7 +33,7 @@ services:
|
|||
retries: 3
|
||||
api-server:
|
||||
build:
|
||||
context: ..
|
||||
context: ${FETCHML_REPO_ROOT:-..}
|
||||
dockerfile: build/docker/simple.Dockerfile
|
||||
container_name: ml-experiments-api
|
||||
user: "0:0"
|
||||
|
|
@ -126,7 +126,7 @@ services:
|
|||
restart: "no"
|
||||
worker:
|
||||
build:
|
||||
context: ..
|
||||
context: ${FETCHML_REPO_ROOT:-..}
|
||||
dockerfile: build/docker/simple.Dockerfile
|
||||
container_name: ml-experiments-worker
|
||||
user: "0:0"
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ services:
|
|||
api-server:
|
||||
build:
|
||||
context: ${FETCHML_REPO_ROOT:-..}
|
||||
dockerfile: ${FETCHML_REPO_ROOT:-..}/build/docker/simple.Dockerfile
|
||||
dockerfile: build/docker/simple.Dockerfile
|
||||
user: "0:0"
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
|
|
|
|||
Loading…
Reference in a new issue