Skip to content
Snippets Groups Projects
Commit 32f2cf56 authored by Ronnie Friman's avatar Ronnie Friman
Browse files

initial db settings with echo

parent 4832b42d
No related branches found
No related tags found
2 merge requests!59Development to master,!21Error handling
Pipeline #63953 passed
...@@ -32,6 +32,11 @@ e2e-testing: ...@@ -32,6 +32,11 @@ e2e-testing:
- docker-compose build --no-cache - docker-compose build --no-cache
- docker-compose up -d - docker-compose up -d
after_script: after_script:
- sleep 120 - sleep 8
- echo "create database ehasa;" | docker exec -i postgis psql -U postgres
- echo "create user ehasa;" | docker exec -i postgis psql -U postgres
- echo "alter user ehasa with encrypted password 'salasana';" | docker exec -i postgis psql -U postgres
- echo "grant all privileges on database ehasa to ehasa;" | docker exec -i postgis psql -U postgres
- echo 'create extension "uuid-ossp";' | docker exec -i postgis psql -U postgres ehasa
allow_failure: true allow_failure: true
...@@ -8,7 +8,5 @@ services: ...@@ -8,7 +8,5 @@ services:
postgres: postgres:
image: mdillon/postgis image: mdillon/postgis
container_name: postgis container_name: postgis
volumes:
- ./docker:/docker-entrypoint-initdb.d
ports: ports:
- 5432:5432 - 5432:5432
\ No newline at end of file
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