Kubernetes Custom Dev Environment - Home directory is formatted #16344
Unanswered
rhythm-devopspro
asked this question in
Workspace Provisioning & Templates
Replies: 2 comments 2 replies
-
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 |
Beta Was this translation helpful? Give feedback.
1 reply
-
I have the same problem now, this is my dockerfile ARG base
FROM ${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=1
ENV SDKMAN_DIR=/usr/local/lib/.sdkman
RUN 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/.m2
COPY 99-java $HOME/.bashrc.d/99-java
COPY 99-java $HOME/.zshrc.d/99-java
COPY maven-settings.xml $HOME/.m2/settings.xml |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Setup
codercom/enterprise-base:ubuntu
as base image, to install some pre-required things likenvm
,gvm
,pyenv
andinfisical
docker run
command, everything works exactly as expected, I have nodejs, golang, and python installed./home/coder
gets formatted, and all the installed apps likenvm
,pyenv
andgvm
and.bashrc
file, all gets removed, thus not usable in the environmentapt
are there likeinfisical
, that's not removed.Expected Result
Dockerfile Used
Public Docker Image
devopsprosamples/development-environment:coder
docker run -it devopsprosamples/development-environment:coder bash
node -v
,python --version
,go version
,nvm -v
.Beta Was this translation helpful? Give feedback.
All reactions