Skip to content

Commit 6bf1a83

Browse files
committed
[DOP-30579] Improve ivy2 package caching
1 parent 31156f7 commit 6bf1a83

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docker/Dockerfile.worker

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ RUN --mount=type=bind,source=./syncmaster/worker/ivy2.py,target=/app/syncmaster/
5858
python /app/docker/download_ivy2_packages.py oracle && \
5959
python /app/docker/download_ivy2_packages.py mssql && \
6060
python /app/docker/download_ivy2_packages.py mysql && \
61-
mkdir -p /home/syncmaster/.ivy2/ && \
62-
cp --recursive /root/.ivy2/ /home/syncmaster/.ivy2/
61+
mkdir -p /home/syncmaster/.ivy2/cache /home/syncmaster/.ivy2/jars && \
62+
cp --recursive /root/.ivy2/jars/ /home/syncmaster/.ivy2/jars/ && \
63+
cp --recursive /root/.ivy2/cache/ /home/syncmaster/.ivy2/cache/
6364
# if someone uses custom worker image, they should download jars on their own
6465

6566

0 commit comments

Comments
 (0)