-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose-features-azure.yaml
70 lines (67 loc) · 1.8 KB
/
docker-compose-features-azure.yaml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
services:
azurite:
image: mcr.microsoft.com/azure-storage/azurite:3.29.0
container_name: "azurite"
hostname: azurite
command: "azurite-blob --blobHost 0.0.0.0 --blobPort 10000"
ports:
- "10000:10000"
healthcheck:
test: nc 127.0.0.1 10000 -z
interval: 1s
retries: 30
azurite-seed:
image: rclone/rclone:1.65
depends_on:
azurite:
condition: service_healthy
volumes:
- ./:/examples
environment:
- RCLONE_CONFIG_BLOBS_TYPE=azureblob
- RCLONE_CONFIG_BLOBS_ENDPOINT=http://azurite:10000/devstoreaccount1
- RCLONE_CONFIG_BLOBS_USE_EMULATOR=true
entrypoint:
- sh
- -c
- |
echo "create azure container"
rclone mkdir blobs:example
echo "upload cloud-backed sqlite/geopackage files (pre-created with blockcachevfsd CLI)"
rclone copy /examples/resources/addresses-cloudbacked-gpkg/ blobs:example
touch /tmp/finished
echo "done"
sleep 300 # because docker-compose --exit-code-from implies --abort-on-container-exit
healthcheck:
test: stat /tmp/finished
interval: 1s
retries: 30
gokoala:
build:
context: ../
dockerfile: Dockerfile
depends_on:
azurite-seed:
condition: service_healthy
command: "--config-file ./examples/config_features_azure.yaml"
volumes:
- ./:/examples
ports:
- "8080:8080"
healthcheck:
test: /bin/curl --fail http://127.0.0.1:8080 || exit 1
interval: 1s
retries: 30
smoketest:
image: ghcr.io/osgeo/gdal:ubuntu-small-3.8.3
depends_on:
gokoala:
condition: service_healthy
entrypoint:
- sh
- -c
- |
set -e
echo "test OGC API"
ogrinfo -so OAPIF:http://gokoala:8080 dutch-addresses