- Notifications
You must be signed in to change notification settings - Fork1.1k
Kubernetes Custom Dev Environment - Home directory is formatted#16344
-
Setup
Expected Result
Dockerfile UsedPublic Docker Image
|
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 2 comments 2 replies
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Hi@rhythm-devopspro. Sorry for not seeing this before. Coming to the issue is that the template mounts a volume over the home directory, which shadows the file system of the container at that path. You can either install the tools outside the home or install them in the |
BetaWas this translation helpful?Give feedback.
All reactions
-
Can't this be deleted? I think this is very unfriendly. |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
I have the same problem now, this is my dockerfile ARG baseFROM ${base}ARG JAVA_VERSION# Dazzle does not rebuild a layer until one of its lines are changed. Increase this counter to rebuild this layer.ENV TRIGGER_REBUILD=1ENV SDKMAN_DIR=/usr/local/lib/.sdkmanRUN curl -fsSL"https://get.sdkman.io" | bash \ && bash -c". $SDKMAN_DIR/bin/sdkman-init.sh \ && sed -i 's/sdkman_selfupdate_feature=true/sdkman_selfupdate_feature=false/g' $SDKMAN_DIR/etc/config \ && sdk install gradle \ && sdk install maven \ && sdk flush archives \ && sdk install java ${JAVA_VERSION} \ && sdk install java 8.0.462-kona \ && sdk default java ${JAVA_VERSION} \ && sdk flush temp \ && mkdir $HOME/.m2"RUN mkdir -p $HOME/.bashrc.d $HOME/.zshrc.d $HOME/.m2COPY 99-java $HOME/.bashrc.d/99-javaCOPY 99-java $HOME/.zshrc.d/99-javaCOPY maven-settings.xml $HOME/.m2/settings.xml |
BetaWas this translation helpful?Give feedback.
All reactions
-
@imaxun, The issue is with how Docker volumes work. A volume overshadows the filesystem in the image. You should either install all tools outside of |
BetaWas this translation helpful?Give feedback.
All reactions
This discussion was converted from issue #13682 on January 30, 2025 14:22.