Skip to content

Commit 3319fbf

Browse files
committed
[DOP-30579] Improve ivy2 package caching
1 parent 5ba58a5 commit 3319fbf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docker/Dockerfile.worker

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

6766

0 commit comments

Comments
 (0)