mirror of
https://github.com/aleleba/aleleba-vscode-dockerfile-configuration.git
synced 2025-06-18 20:08:13 -06:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
72cc00272c | |||
1e044e4959 | |||
4bcf68cd67 |
@ -33,4 +33,4 @@ RUN sudo sysctl -w fs.inotify.max_user_watches=524288
|
|||||||
ADD ./entrypoint.sh /usr/bin/entrypoint.sh
|
ADD ./entrypoint.sh /usr/bin/entrypoint.sh
|
||||||
RUN sudo chmod +x /usr/bin/entrypoint.sh
|
RUN sudo chmod +x /usr/bin/entrypoint.sh
|
||||||
|
|
||||||
ENTRYPOINT ["bash", "/usr/bin/entrypoint.sh"]
|
ENTRYPOINT ["/usr/bin/entrypoint.sh"]
|
@ -1,6 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
exec [[ -z "${HOME_USER}" ]] && adduser --disabled-password --gecos "" vscode \
|
[[ -z "${HOME_USER}" ]] && (adduser --disabled-password --gecos "" vscode && echo 'vscode ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers && su vscode) \
|
||||||
echo 'vscode ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers \
|
|| (adduser --disabled-password --gecos "" ${HOME_USER} && echo '${HOME_USER} ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers && su ${HOME_USER})
|
||||||
|| adduser --disabled-password --gecos "" ${HOME_USER} \
|
[[ -z "${VSCODE_TUNNEL_NAME}" ]] && code tunnel --accept-server-license-terms || code tunnel --accept-server-license-terms --name ${VSCODE_TUNNEL_NAME}
|
||||||
echo '${HOME_USER} ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
|
||||||
exec [[ -z "${VSCODE_TUNNEL_NAME}" ]] && code tunnel --accept-server-license-terms || code tunnel --accept-server-license-terms --name ${VSCODE_TUNNEL_NAME}
|
|
@ -1 +1 @@
|
|||||||
1.0.2
|
1.0.5
|
Reference in New Issue
Block a user