Skip to content

Commit 3c6ba8c

Browse files
committed
move datalake storage config to overrides
Signed-off-by: Alexander Onnikov <[email protected]>
1 parent 363a6c1 commit 3c6ba8c

File tree

4 files changed

+39
-27
lines changed

4 files changed

+39
-27
lines changed

tests/.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
STORAGE_CONFIG="datalake|http://datalake:4031"
1+
STORAGE_CONFIG="minio|minio?accessKey=minioadmin&secretKey=minioadmin"
2+
DATALAKE_STORAGE_CONFIG="datalake|http://datalake:4031"
23
BACKUP_STORAGE_CONFIG="minio|minio?accessKey=minioadmin&secretKey=minioadmin"
34
BACKUP_BUCKET_NAME=dev-backups
45

tests/docker-compose.override.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,47 @@ services:
22
account:
33
environment:
44
- DB_URL=${DB_PG_URL}
5+
- STORAGE_CONFIG=${DATALAKE_STORAGE_CONFIG}
56
transactor:
67
environment:
78
- DB_URL=${DB_PG_URL}
9+
- STORAGE_CONFIG=${DATALAKE_STORAGE_CONFIG}
810
workspace:
911
environment:
1012
- DB_URL=${DB_PG_URL}
13+
- STORAGE_CONFIG=${DATALAKE_STORAGE_CONFIG}
1114
fulltext:
1215
environment:
1316
- DB_URL=${DB_PG_URL}
17+
- STORAGE_CONFIG=${DATALAKE_STORAGE_CONFIG}
18+
front:
19+
environment:
20+
- STORAGE_CONFIG=${DATALAKE_STORAGE_CONFIG}
21+
- FILES_URL=http://localhost:4031/blob/:workspace/:blobId/:filename
22+
- UPLOAD_URL=http://localhost:4031/upload/form-data/:workspace
23+
- PREVIEW_CONFIG=http://localhost:4031/image/fit=cover,width=:width,height=:height,dpr=:dpr/:workspace/:blobId
24+
collaborator:
25+
environment:
26+
- STORAGE_CONFIG=${DATALAKE_STORAGE_CONFIG}
27+
datalake:
28+
image: hardcoreeng/datalake
29+
depends_on:
30+
minio:
31+
condition: service_healthy
32+
cockroach:
33+
condition: service_started
34+
stats:
35+
condition: service_started
36+
account:
37+
condition: service_started
38+
ports:
39+
- 4031:4031
40+
environment:
41+
- PORT=4031
42+
- SECRET=secret
43+
- ACCOUNTS_URL=http://account:3003
44+
- STATS_URL=http://stats:4901
45+
- STREAM_URL=http://localhost:1081/recording
46+
- DB_URL=${DB_PG_URL}
47+
- BUCKETS=blobs,eu|http://minio:9000?accessKey=minioadmin&secretKey=minioadmin
48+
restart: unless-stopped

tests/docker-compose.yaml

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,7 @@ services:
173173
- SERVER_SECRET=secret
174174
- ACCOUNTS_URL_INTERNAL=http://account:3003
175175
- ACCOUNTS_URL=http://localhost:3003
176-
- FILES_URL=http://localhost:4031/blob/:workspace/:blobId/:filename
177-
- UPLOAD_URL=http://localhost:4031/upload/form-data/:workspace
178-
- PREVIEW_CONFIG=http://localhost:4031/image/fit=cover,width=:width,height=:height,dpr=:dpr/:workspace/:blobId
176+
- UPLOAD_URL=/files
179177
- ELASTIC_URL=http://elastic:9200
180178
- GMAIL_URL=http://localhost:8088
181179
- CALENDAR_URL=http://localhost:8095
@@ -275,28 +273,6 @@ services:
275273
- REKONI_URL=http://rekoni:4007
276274
- ACCOUNTS_URL=http://account:3003
277275
- STATS_URL=http://stats:4901
278-
datalake:
279-
image: hardcoreeng/datalake
280-
depends_on:
281-
minio:
282-
condition: service_healthy
283-
cockroach:
284-
condition: service_started
285-
stats:
286-
condition: service_started
287-
account:
288-
condition: service_started
289-
ports:
290-
- 4031:4031
291-
environment:
292-
- PORT=4031
293-
- SECRET=secret
294-
- ACCOUNTS_URL=http://account:3003
295-
- STATS_URL=http://stats:4901
296-
- STREAM_URL=http://localhost:1081/recording
297-
- DB_URL=${DB_PG_URL}
298-
- BUCKETS=blobs,eu|http://minio:9000?accessKey=minioadmin&secretKey=minioadmin
299-
restart: unless-stopped
300276
stats:
301277
image: hardcoreeng/stats
302278
ports:

tests/tool.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
export MODEL_VERSION=$(node ../common/scripts/show_version.js)
4-
export STORAGE_CONFIG="datalake|http://localhost:4031"
4+
export STORAGE_CONFIG="minio|minio?accessKey=minioadmin&secretKey=minioadmin"
55
export ACCOUNTS_URL=http://localhost:3003
66
export TRANSACTOR_URL=ws://localhost:3334
77
export ACCOUNT_DB_URL=mongodb://localhost:27018

0 commit comments

Comments
 (0)