File tree 7 files changed +10
-10
lines changed
service-library/tests/with_postgres
web/server/tests/unit/with_dbs
7 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ setup_database() {
127
127
echo " --------------- injecting templates in postgres db..."
128
128
129
129
# Checks that pg is up and running
130
- IMAGE_NAME=" $( docker image ls --filter ' reference=postgres*' --format " {{.Repository}}:{{.Tag }}" | tail -1) "
130
+ IMAGE_NAME=" $( docker image ls --filter ' reference=postgres*' --format " {{.ID }}" | tail -1) "
131
131
docker ps --filter " ancestor=$IMAGE_NAME "
132
132
docker inspect " $( docker ps --filter " ancestor=$IMAGE_NAME " -q) "
133
133
Original file line number Diff line number Diff line change 1
1
version : ' 3.4'
2
2
services :
3
3
postgres :
4
- image : postgres:10.11
4
+ image : " postgres:10.11@sha256:2aef165ab4f30fbb109e88959271d8b57489790ea13a77d27c02d8adb8feb20f "
5
5
environment :
6
6
POSTGRES_USER : test
7
7
POSTGRES_PASSWORD : test
Original file line number Diff line number Diff line change 1
1
version : " 3.4"
2
2
services :
3
3
postgres :
4
- image : postgres:10.11
4
+ image : " postgres:10.11@sha256:2aef165ab4f30fbb109e88959271d8b57489790ea13a77d27c02d8adb8feb20f "
5
5
restart : always
6
6
environment :
7
7
POSTGRES_DB : db
Original file line number Diff line number Diff line change 1
1
version : ' 3.4'
2
2
services :
3
3
postgres :
4
- image : postgres:10.11
4
+ image : " postgres:10.11@sha256:2aef165ab4f30fbb109e88959271d8b57489790ea13a77d27c02d8adb8feb20f "
5
5
restart : always
6
6
environment :
7
7
POSTGRES_DB : ${TEST_POSTGRES_DB}
Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ services:
221
221
- default
222
222
223
223
postgres :
224
- image : postgres:10.11
224
+ image : " postgres:10.11@sha256:2aef165ab4f30fbb109e88959271d8b57489790ea13a77d27c02d8adb8feb20f "
225
225
init : true
226
226
environment :
227
227
- POSTGRES_USER=${POSTGRES_USER}
@@ -255,7 +255,7 @@ services:
255
255
]
256
256
257
257
redis :
258
- image : redis:5.0.9-alpine
258
+ image : " redis:5.0.9-alpine@sha256:b011c1ca7fa97ed92d6c5995e5dd752dc37fe157c1b60ce96a6e35701851dabc "
259
259
init : true
260
260
networks :
261
261
- default
Original file line number Diff line number Diff line change 1
1
version : " 3.7"
2
2
services :
3
3
postgres :
4
- image : postgres:10.11
4
+ image : " postgres:10.11@sha256:2aef165ab4f30fbb109e88959271d8b57489790ea13a77d27c02d8adb8feb20f "
5
5
restart : always
6
6
environment :
7
7
# defaults are the same as in conftest.yaml so we start compose from command line for debugging
@@ -29,7 +29,7 @@ services:
29
29
depends_on :
30
30
- postgres
31
31
redis :
32
- image : redis:5.0.9-alpine
32
+ image : " redis:5.0.9-alpine@sha256:b011c1ca7fa97ed92d6c5995e5dd752dc37fe157c1b60ce96a6e35701851dabc "
33
33
ports :
34
34
- " 6379:6379"
35
35
redis-commander :
Original file line number Diff line number Diff line change 1
1
version : " 3.7"
2
2
services :
3
3
postgres :
4
- image : postgres:10.11
4
+ image : " postgres:10.11@sha256:2aef165ab4f30fbb109e88959271d8b57489790ea13a77d27c02d8adb8feb20f "
5
5
restart : always
6
6
environment :
7
7
POSTGRES_DB : ${TEST_POSTGRES_DB}
@@ -22,6 +22,6 @@ services:
22
22
command : postgres -c tcp_keepalives_idle=600 -c tcp_keepalives_interval=600 -c tcp_keepalives_count=5
23
23
24
24
redis :
25
- image : redis:5.0.9-alpine
25
+ image : " redis:5.0.9-alpine@sha256:b011c1ca7fa97ed92d6c5995e5dd752dc37fe157c1b60ce96a6e35701851dabc "
26
26
ports :
27
27
- " 6379:6379"
You can’t perform that action at this time.
0 commit comments