build: integration testing postegres on ci.

This commit is contained in:
Leonard Gram
2018-05-30 16:27:47 +02:00
parent 50d1519a91
commit e33b17fac6
4 changed files with 30 additions and 5 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
postgrestest:
image: postgres:latest
image: postgres:9.3
environment:
POSTGRES_USER: grafana
POSTGRES_PASSWORD: password
@@ -13,4 +13,4 @@
network_mode: bridge
environment:
FD_DATASOURCE: postgres
FD_PORT: 5432
FD_PORT: 5432
+2 -2
View File
@@ -1,3 +1,3 @@
FROM postgres:latest
FROM postgres:9.3
ADD setup.sql /docker-entrypoint-initdb.d
CMD ["postgres"]
CMD ["postgres"]
+1 -1
View File
@@ -1,3 +1,3 @@
CREATE DATABASE grafanadstest;
REVOKE CONNECT ON DATABASE grafanadstest FROM PUBLIC;
GRANT CONNECT ON DATABASE grafanadstest TO grafanatest;
GRANT CONNECT ON DATABASE grafanadstest TO grafanatest;