Skip to content

Commit

Permalink
building docker and running in the same job env
Browse files Browse the repository at this point in the history
  • Loading branch information
Taniya-Das committed Jul 12, 2023
1 parent 8447b80 commit a81f189
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,12 @@ jobs:
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build --tag ai4eu_server_demo:latest -f Dockerfile .


- run: pip install ".[dev]"
- name: Run docker container
run: |
docker network create sql-network
docker run -e MYSQL_ROOT_PASSWORD=ok --name sqlserver --network sql-network -d mysql
docker run --network sql-network -it --rm -p 8000:8000 --name apiserver ai4eu_server_demo
pip install pre-commit
docker run --entrypoint "pytest tests" ai4eu_server_demo


Expand Down

0 comments on commit a81f189

Please sign in to comment.