Skip to content
Snippets Groups Projects
Verified Commit 35a4f491 authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[docker_test.sh] Do not reset hard after launching testing containers

There is some situations where this is not desirable : docker_test.sh replaces all .picasoft.net with .test.picasoft.net to help testing. If, for example, you have a mounted config.json with a modified URL, and that you reset the repository, the file will be reset inside the container, leading to strange bug, such as the test container trying to connect to the production database. Also, it is really easier to debug the test instance with test values
parent 86605dac
No related branches found
No related tags found
No related merge requests found
......@@ -94,9 +94,8 @@ docker-compose config | grep "image:" | cut -d ':' -f 2- | xargs docker image rm
echo -e "\n==== Pull new versions of images ===="
docker-compose pull
echo -e "\n==== Lauch $1 and restore repository ===="
echo -e "\n==== Lauch $1 ===="
docker-compose up -d
git reset --hard
echo -e "\n==== Print logs (use Ctrl+C to stop) ===="
docker-compose logs -f
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment