Skip to content

Commit 6035594

Browse files
committed
[scripts][s]: autoremove containers on exit
1 parent 7b2c880 commit 6035594

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

run-docker-compose.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

run-mock-environment.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
# Launches mock postgres and hasura from `environment` directory
4+
# Useful for development locally
5+
6+
docker-compose up --build && docker-compose rm -fsv

run-single-test.sh

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
# This script imitates how the tests will be run on dockerhub
44
# you can run to see the test execution in docker container locally
55

6-
docker-compose -f docker-compose.test.yml -p datopian-data-api-test up --exit-code-from sut --renew-anon-volumes --build
6+
docker-compose -f docker-compose.test.yml -p datopian-data-api-test up --exit-code-from sut --renew-anon-volumes --build && \
7+
docker-compose -f docker-compose.test.yml -p datopian-data-api-test rm -fsv

0 commit comments

Comments
 (0)