forked from Weitzman-MUSA-GeoCloud/assignment01
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
42 lines (40 loc) · 1.12 KB
/
Copy pathcompose.yml
File metadata and controls
42 lines (40 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Create a postgis service using the postgis/postgis image.
services:
db:
image: postgis/postgis
environment:
POSTGRES_PASSWORD: postgres
healthcheck:
# test: ["CMD-SHELL", "pg_isready -U postgres"]
test: [
"CMD-SHELL",
'psql -U postgres -d postgres -c "SELECT ST_Buffer( ST_SetSRID(''POINT(0 0)''::GEOMETRY, 4326), 1) AS geom ;"',
]
interval: 5s
timeout: 5s
retries: 5
run-linter:
image: ghcr.io/weitzman-musa-geocloud/assignment01:main
volumes:
- .:/assignment01
command: [
"bash", "-c",
"cd /assignment01 && __entrypoints__/run_linter.sh -- ."
]
run-tests:
image: ghcr.io/weitzman-musa-geocloud/assignment01:main
depends_on:
db:
condition: service_healthy
environment:
POSTGRES_USER: postgres
POSTGRES_PASS: postgres
POSTGRES_HOST: db
POSTGRES_PORT: 5432
POSTGRES_NAME: postgres
volumes:
- .:/assignment01
command: [
"bash", "-c",
"cd /assignment01 && npm install > /dev/null && __entrypoints__/run_tests.sh -- --rootDir /assignment01"
]