Skip to content

Commit 67c0376

Browse files
authored
ATLAS-4981: Add file permissions to resolve atlas build issues in docker (#270)
1 parent 6d82ef5 commit 67c0376

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,30 @@ jobs:
4949
restore-keys: |
5050
maven-repo-
5151
52+
- name: Set up .m2 directory and permissions
53+
run: |
54+
mkdir -p ~/.m2/repository
55+
chmod -R 777 ~/.m2
56+
chmod -R 777 ./
57+
5258
- name: Set up JDK 8
5359
uses: actions/setup-java@v4
5460
with:
5561
java-version: '8'
5662
distribution: 'temurin'
5763

64+
- name: Clean up Docker space
65+
run: docker system prune --all --force --volumes
66+
67+
- name: Build Atlas - JDK 8
68+
run: |
69+
cd dev-support/atlas-docker
70+
export DOCKER_BUILDKIT=1
71+
export COMPOSE_DOCKER_CLI_BUILD=1
72+
SKIPTESTS=false docker compose -f docker-compose.atlas-base.yml -f docker-compose.atlas-build.yml up
73+
5874
- name: Cache downloaded archives
75+
if: success()
5976
uses: actions/cache@v4
6077
with:
6178
path: dev-support/atlas-docker/downloads
@@ -68,16 +85,6 @@ jobs:
6885
cd dev-support/atlas-docker
6986
chmod +x download-archives.sh && ./download-archives.sh
7087
71-
- name: Clean up Docker space
72-
run: docker system prune --all --force --volumes
73-
74-
- name: Build Atlas - JDK 8
75-
run: |
76-
cd dev-support/atlas-docker
77-
export DOCKER_BUILDKIT=1
78-
export COMPOSE_DOCKER_CLI_BUILD=1
79-
SKIPTESTS=false docker compose -f docker-compose.atlas-base.yml -f docker-compose.atlas-build.yml up
80-
8188
- name: Bring up containers
8289
run: |
8390
cd dev-support/atlas-docker
@@ -86,8 +93,8 @@ jobs:
8693
docker compose \
8794
-f docker-compose.atlas-base.yml \
8895
-f docker-compose.atlas.yml \
89-
-f docker-compose.atlas-hadoop.yml \
90-
-f docker-compose.atlas-hbase.yml \
96+
-f docker-compose.atlas-hadoop.yml \
97+
-f docker-compose.atlas-hbase.yml \
9198
-f docker-compose.atlas-kafka.yml \
9299
-f docker-compose.atlas-hive.yml up -d
93100

0 commit comments

Comments
 (0)