Skip to content

Commit

Permalink
Merge pull request #2480 from camptocamp/docker-compose
Browse files Browse the repository at this point in the history
Use Docker Compose version 2
  • Loading branch information
sbrunner authored Aug 9, 2024
2 parents 4013f20 + fd0a7b5 commit d22e118
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/rebuild-115.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,22 @@ jobs:
- name: Start
run: |
docker-compose up -d
docker compose up -d
# Wait for DB to be up
while ! docker-compose exec -T test psql -h db -p 5432 -U postgres -v ON_ERROR_STOP=1 -c "SELECT 1" -d tests
while ! docker compose exec -T test psql -h db -p 5432 -U postgres -v ON_ERROR_STOP=1 -c "SELECT 1" -d tests
do
echo "Waiting for DB to be UP"
sleep 1
done
timeout-minutes: 2
- name: Test
run: |
docker-compose exec -T test pytest
docker compose exec -T test pytest
docker-compose down
docker compose down
- run: docker-compose logs
- run: docker compose logs
if: failure()

- run: python3 -m pip install --requirement=requirements-publish.txt
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ Setup your environment:
```bash
touch tilecloud_chain/OpenLayers.js
docker build --tag camptocamp/tilecloud-chain .
docker-compose -p tilecloud up
docker compose -p tilecloud up
```

To run the tests:

```bash
docker-compose -p tilecloud exec test python setup.py nosetests --logging-filter=tilecloud,tilecloud_chain --attr '!'nopy3
docker compose -p tilecloud exec test python setup.py nosetests --logging-filter=tilecloud,tilecloud_chain --attr '!'nopy3
```

## Documentation
Expand Down

0 comments on commit d22e118

Please sign in to comment.