Skip to content
Snippets Groups Projects
Commit b0f297ff authored by Mirco Nasuti's avatar Mirco Nasuti
Browse files

Merge branch 'tests' into 'master'

tests are working



See merge request !18
parents e4f12a66 627b67d9
No related branches found
No related tags found
No related merge requests found
......@@ -14,10 +14,20 @@ if [ $(docker ps -a | grep portal-backend-test | wc -l) -gt 0 ]; then
docker rm -f portal-backend-test
fi
docker run --name portal-db-test -e POSTGRES_USER=postgres -d postgres
docker run --name portal-backend-test -p 8000:8000 \
-e "DB_URL=jdbc:postgresql://172.22.0.1:5432/postgres" \
-e "DB_USER=postgres" \
-e "CONTEXT_PATH=/services" \
-e "PORT=8080" \
docker run --name portal-db-test -p 5432:5432 -e POSTGRES_USER=postgres -d postgres
echo 'Wating for DB to start...'
until [ $(docker exec portal-db-test psql -U postgres -c "\q" 2>&1 | wc -l) -eq 0 ]; do
printf '.'
sleep 1
done
docker run --name portal-backend-test -p 8080:8080 \
-e "AUTHENTICATION=0" \
-d hbpmip/portal-backend
echo 'Wating for backend to start...'
until [ $(docker logs portal-backend-test | grep "Started MIPApplication" | wc -l) -eq 1 ]; do
printf '.'
sleep 1
done
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment