mirror of
https://github.com/aleleba/aleleba-vscode-dockerfile-configuration.git
synced 2025-06-19 12:28:15 -06:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
dddaf129f4
|
|||
6525dc4c7e
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -1 +1 @@
|
|||||||
2.0.14
|
2.0.16
|
Reference in New Issue
Block a user