Compare commits

...

2 Commits

3 changed files with 14 additions and 5 deletions

View File

@ -12,6 +12,9 @@ RUN sudo apt-get install -y wget
#Instalando jq #Instalando jq
RUN sudo apt-get install -y jq RUN sudo apt-get install -y jq
RUN sudo apt-get update
RUN sudo apt-get install dumb-init
RUN adduser --gecos '' --disabled-password vscode \ RUN adduser --gecos '' --disabled-password vscode \
&& echo "vscode ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd && echo "vscode ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd

View File

@ -75,8 +75,14 @@ else
echo "File extensions.json not found" echo "File extensions.json not found"
fi fi
if [[ -z "${VSCODE_TUNNEL_NAME}" ]]; then # Allow users to have scripts run on container startup to prepare workspace.
sudo su - ${HOME_USER} -c "code tunnel --accept-server-license-terms" # https://github.com/coder/code-server/issues/5177
else if [ -d "${ENTRYPOINTD}" ]; then
sudo su - ${HOME_USER} -c "code tunnel --accept-server-license-terms --name ${VSCODE_TUNNEL_NAME}" find "${ENTRYPOINTD}" -type f -executable -print -exec {} \;
fi
if [[ -z "${VSCODE_TUNNEL_NAME}" ]]; then
exec dumb-init sudo su - ${HOME_USER} -c "code tunnel --accept-server-license-terms $@"
else
exec dumb-init sudo su - ${HOME_USER} -c "code tunnel --accept-server-license-terms --name ${VSCODE_TUNNEL_NAME} $@"
fi fi

View File

@ -1 +1 @@
2.0.14 2.0.16