Skip to content

Commit

Permalink
test-docker-compose: use docker image for tests container
Browse files Browse the repository at this point in the history
Use `kernelci/staging-api` image for creating tests container.

Signed-off-by: Jeny Sadadia <[email protected]>
  • Loading branch information
Jeny Sadadia authored and JenySadadia committed Feb 28, 2024
1 parent 9a569d6 commit 0061f6f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions test-docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ services:

test:
container_name: 'kernelci-api-tests'
build:
context: 'docker/api'
args:
- REQUIREMENTS=${REQUIREMENTS:-requirements-dev.txt}
image: '${KERNELCI_API_IMAGE:-kernelci/staging-api}:${KERNELCI_API_TAG:-latest}'
volumes:
- './api:/home/kernelci/api'
- './tests:/home/kernelci/tests'
Expand All @@ -63,3 +60,9 @@ services:
- '.env'
environment:
- 'KEEP_ALIVE_PERIOD=0'
command:
- 'uvicorn'
- 'api.main:versioned_app'
- '--host'
- '0.0.0.0'
- '--reload'

0 comments on commit 0061f6f

Please sign in to comment.