Skip to content

Commit 34645be

Browse files
Add docker compose changes
1 parent 831113a commit 34645be

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

regtests/docker-compose.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,19 @@
1818
#
1919

2020
services:
21-
21+
init:
22+
image: busybox
23+
volumes:
24+
- hadoop-warehouse:/tmp/hadoop_warehouse
25+
command: ["sh", "-c", "umask 000 && mkdir -p /tmp/hadoop_warehouse && chmod 777 /tmp/hadoop_warehouse"]
2226
polaris:
2327
image: apache/polaris:latest
2428
ports:
2529
- "8181"
2630
- "8182"
31+
depends_on:
32+
init:
33+
condition: service_completed_successfully
2734
environment:
2835
AWS_REGION: us-west-2
2936
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
@@ -47,7 +54,7 @@ services:
4754
volumes:
4855
- ./credentials:/tmp/credentials/
4956
- ./hadoop-conf:/tmp/hadoop-conf
50-
- ./hadoop-warehouse:/tmp/hadoop_warehouse
57+
- hadoop-warehouse:/tmp/hadoop_warehouse
5158
healthcheck:
5259
test: ["CMD", "curl", "http://localhost:8182/q/health"]
5360
interval: 10s
@@ -62,6 +69,8 @@ services:
6269
depends_on:
6370
polaris:
6471
condition: service_healthy
72+
init:
73+
condition: service_completed_successfully
6574
environment:
6675
AWS_TEST_ENABLED: $AWS_TEST_ENABLED
6776
AWS_STORAGE_BUCKET: $AWS_STORAGE_BUCKET
@@ -85,4 +94,7 @@ services:
8594
- ./output:/tmp/polaris-regtests/
8695
- ./credentials:/tmp/credentials/
8796
- ./hadoop-conf:/tmp/hadoop-conf
88-
- ./hadoop-warehouse:/tmp/hadoop_warehouse
97+
- hadoop-warehouse:/tmp/hadoop_warehouse
98+
99+
volumes:
100+
hadoop-warehouse:

0 commit comments

Comments
 (0)