mirror of
https://github.com/aleleba/aleleba-vscode-dockerfile-configuration.git
synced 2025-06-19 12:28:15 -06:00
Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
e0bb4bfa2f | |||
c90139bbcc | |||
3dc1c03a0f | |||
f7c889e3c9 | |||
115d25613c | |||
eaa8cc886d | |||
ff85878b7e | |||
c189c21474 | |||
49ffeccf7e | |||
72cc00272c |
@ -3,7 +3,6 @@ FROM ubuntu:22.04
|
||||
# Update the package list, install sudo, create a non-root user, and grant password-less sudo permissions
|
||||
RUN apt update
|
||||
RUN apt install -y sudo
|
||||
RUN addgroup nonroot
|
||||
|
||||
RUN sudo apt-get update
|
||||
#Instalando Curl
|
||||
|
@ -1,4 +1,14 @@
|
||||
#!/bin/bash
|
||||
[[ -z "${HOME_USER}" ]] && (adduser --disabled-password --gecos "" vscode && echo 'vscode ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers) \
|
||||
|| (adduser --disabled-password --gecos "" ${HOME_USER} && echo '${HOME_USER} ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers)
|
||||
[[ -z "${VSCODE_TUNNEL_NAME}" ]] && code tunnel --accept-server-license-terms || code tunnel --accept-server-license-terms --name ${VSCODE_TUNNEL_NAME}
|
||||
if [[ -z "${HOME_USER}" ]]; then
|
||||
HOME_USER="vscode"
|
||||
fi
|
||||
|
||||
addgroup nonroot
|
||||
adduser --disabled-password --gecos "" ${HOME_USER}
|
||||
echo "${HOME_USER} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||
|
||||
if [[ -z "${VSCODE_TUNNEL_NAME}" ]]; then
|
||||
sudo su - ${HOME_USER} -c "code tunnel --accept-server-license-terms"
|
||||
else
|
||||
sudo su - ${HOME_USER} -c "code tunnel --accept-server-license-terms --name ${VSCODE_TUNNEL_NAME}"
|
||||
fi
|
||||
|
@ -1 +1 @@
|
||||
1.0.4
|
||||
1.0.14
|
Reference in New Issue
Block a user