Skip to content

Commit 82ab68f

Browse files
Add docker compose changes
1 parent 831113a commit 82ab68f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

regtests/docker-compose.yml

Lines changed: 10 additions & 1 deletion
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
@@ -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

0 commit comments

Comments
 (0)