Skip to content

Commit 5053d0e

Browse files
authored
Temporary fix for missing .ivy2 directory (#140)
see sbt/sbt#6437
1 parent 757dcc7 commit 5053d0e

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

debian/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ RUN \
7272
# This allows users of this container to choose, whether they want to run the container as sbtuser (non-root) or as root
7373
USER root
7474
RUN \
75+
mkdir -p /home/sbtuser/.ivy2 && \
76+
chown -R sbtuser:sbtuser /home/sbtuser/.ivy2 && \
7577
ln -s /home/sbtuser/.cache /root/.cache && \
7678
ln -s /home/sbtuser/.ivy2 /root/.ivy2 && \
7779
ln -s /home/sbtuser/.sbt /root/.sbt

graalvm-ce/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ RUN \
6868
# This allows users of this container to choose, whether they want to run the container as sbtuser (non-root) or as root
6969
USER root
7070
RUN \
71+
mkdir -p /home/sbtuser/.ivy2 && \
72+
chown -R sbtuser:sbtuser /home/sbtuser/.ivy2 && \
7173
ln -s /home/sbtuser/.cache /root/.cache && \
7274
ln -s /home/sbtuser/.ivy2 /root/.ivy2 && \
7375
ln -s /home/sbtuser/.sbt /root/.sbt

oracle/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ RUN \
7070
# This allows users of this container to choose, whether they want to run the container as sbtuser (non-root) or as root
7171
USER root
7272
RUN \
73+
mkdir -p /home/sbtuser/.ivy2 && \
74+
chown -R sbtuser:sbtuser /home/sbtuser/.ivy2 && \
7375
ln -s /home/sbtuser/.cache /root/.cache && \
7476
ln -s /home/sbtuser/.ivy2 /root/.ivy2 && \
7577
ln -s /home/sbtuser/.sbt /root/.sbt

0 commit comments

Comments
 (0)