-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
199 lines (184 loc) · 5.36 KB
/
docker-compose.yml
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
version: "3.8"
services:
database:
image: quay.io/azavea/postgis:3-postgres12.4-slim
environment:
- POSTGRES_USER=franklin
- POSTGRES_PASSWORD=franklin
- POSTGRES_DB=franklin
franklin:
image: quay.io/azavea/franklin:f31b639
command: ["serve", "--with-transactions"]
environment:
- ENVIRONMENT=development
- DB_HOST=database
- DB_NAME=franklin
- DB_USER=franklin
- DB_PASSWORD=franklin
- AWS_PROFILE
- AWS_REGION
ports:
- "9090:9090"
depends_on:
- "database"
migrate:
image: quay.io/azavea/franklin:f31b639
command: ["migrate"]
environment:
- ENVIRONMENT=development
- DB_HOST=database
- DB_NAME=franklin
- DB_USER=franklin
- DB_PASSWORD=franklin
- AWS_PROFILE
- AWS_REGION
ports:
- "9090:9090"
depends_on:
- "database"
catalogs-aviris:
image: nasa-hsi-catalogs-aviris
build:
context: ./src/catalogs/aviris
environment:
- AWS_PROFILE=${AWS_PROFILE:-nasa}
volumes:
- ./src/catalogs/aviris:/usr/local/src
- $HOME/.aws:/root/.aws:ro
- conda-pkg-cache:/opt/conda/pkgs
activator:
image: activator
build:
context: ./src/pipeline/activator/
environment:
- STAC_API_URI=${STAC_API_URI:-http://franklin:9090}
- S3_BUCKET=aviris-data-dev-${USER}
- AWS_PROFILE=${AWS_PROFILE:-nasa}
- CI
- AWS_REGION
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- LOG_LEVEL=${LOG_LEVEL:-INFO}
volumes:
- ./src/pipeline/activator:/usr/local/src
- ./pipeline-data:/data
- $HOME/.aws:/root/.aws:ro
- conda-pkg-cache:/opt/conda/pkgs
depends_on:
- "franklin"
activator-aviris:
image: activator
entrypoint: [python, -m, activator.aviris.main]
build:
context: ./src/pipeline/activator/
environment:
- STAC_API_URI=${STAC_API_URI:-http://franklin:9090}
- S3_BUCKET=aviris-data-dev-${USER}
- AWS_PROFILE=${AWS_PROFILE:-nasa}
- LOG_LEVEL=${LOG_LEVEL:-INFO}
- AWS_REGION
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
volumes:
- ./src/pipeline/activator:/usr/local/src
- ./pipeline-data:/data
- $HOME/.aws:/root/.aws:ro
- conda-pkg-cache:/opt/conda/pkgs
activator-prisma:
image: activator
entrypoint: [python, -m, activator.prisma.main]
build:
context: ./src/pipeline/activator/
environment:
- STAC_API_URI=${STAC_API_URI:-http://franklin:9090}
- S3_BUCKET=prisma-data-dev-${USER}
- AWS_PROFILE=${AWS_PROFILE:-nasa}
- LOG_LEVEL=${LOG_LEVEL:-INFO}
volumes:
- ./src/pipeline/activator:/usr/local/src
- ./pipeline-data:/data
- $HOME/.aws:/root/.aws:ro
- conda-pkg-cache:/opt/conda/pkgs
activator-sentinel-s2:
image: activator
entrypoint: [python, -m, activator.sentinel_s2.main]
build:
context: ./src/pipeline/activator/
environment:
- STAC_API_URI=${STAC_API_URI:-http://franklin:9090}
- S3_BUCKET=sentinel-s2-data-dev-${USER}
- AWS_PROFILE=${AWS_PROFILE:-nasa}
- LOG_LEVEL=${LOG_LEVEL:-INFO}
- AWS_REQUEST_PAYER=requester
- GDAL_DISABLE_READDIR_ON_OPEN=YES
volumes:
- ./src/pipeline/activator:/usr/local/src
- ./pipeline-data:/data
- $HOME/.aws:/root/.aws:ro
- conda-pkg-cache:/opt/conda/pkgs
activator-planet:
image: activator
entrypoint: [python, -m, activator.planet.main]
build:
context: ./src/pipeline/activator/
environment:
- STAC_API_URI=${STAC_API_URI:-http://franklin:9090}
- S3_BUCKET=planet-data-hsi-${USER}
- AWS_PROFILE=${AWS_PROFILE:-nasa}
- LOG_LEVEL=${LOG_LEVEL:-INFO}
- AWS_REQUEST_PAYER=requester
- GDAL_DISABLE_READDIR_ON_OPEN=YES
volumes:
- ./src/pipeline/activator:/usr/local/src
- ./pipeline-data:/data
- $HOME/.aws:/root/.aws:ro
- conda-pkg-cache:/opt/conda/pkgs
cog-clip:
image: cog-clip
build:
context: ./src/pipeline/cog-clip
environment:
- STAC_API_URI=${STAC_API_URI:-http://franklin:9090}
- TARGET_S3_URI=${TARGET_S3_URI:-s3://nasahyperspectral-test/activator-clip-cogs/}
- LOG_LEVEL=${LOG_LEVEL:-TRACING}
volumes:
- $HOME/.aws:/root/.aws:ro
planner:
image: activator
entrypoint: [python, -m, activator.planner.main]
build:
context: ./src/pipeline/activator/
environment:
- STAC_API_URI=${STAC_API_URI:-http://franklin:9090}
- AWS_PROFILE=${AWS_PROFILE:-nasa}
- LOG_LEVEL=${LOG_LEVEL:-INFO}
volumes:
- ./src/pipeline/activator:/usr/local/src
- ./pipeline-data:/data
- $HOME/.aws:/root/.aws:ro
- conda-pkg-cache:/opt/conda/pkgs
shellcheck:
image: koalaman/shellcheck:stable
volumes:
- ./:/usr/local/src
working_dir: /usr/local/src
black:
image: cytopia/black
volumes:
- ./:/usr/local/src
working_dir: /usr/local/src
dev:
build:
context: .
dockerfile: Dockerfile.dev
volumes:
- ./:/usr/local/src
- ./pipeline-data:/data
- $HOME/.aws:/root/.aws:ro
- conda-pkg-cache:/opt/conda/pkgs
environment:
- AWS_PROFILE=${AWS_PROFILE:-nasa}
volumes:
# Persist the Conda package cache as a named volume. This package cache will
# only be accessible when invoking Conda in-container.
conda-pkg-cache: