This commit is contained in:
2018-03-06 17:48:09 -05:00
parent c226539e9d
commit 9db9c66827
4 changed files with 72 additions and 53 deletions

25
provision.workbox/main.sh Normal file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
#exec 1 2>&1 | tee -a ${LOG_FILE}
if which lsb_release; then
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get -y upgrade
apt-get -y install $(cat $(lsb_release -i -s)-$(lsb_release -r -s)-packages.txt)
fi
pip3 install --upgrade pip
URLBASE="https://github.com/docker/machine/releases/download/v0.14.0"
URL="$URLBASE/docker-machine-$(uname -s)-$(uname -m)"
curl -L $URL > /usr/local/bin/docker-machine
chmod +x /usr/local/bin/docker-machine
if [[ ! -d /home/sneak ]]; then
useradd -m -s /bin/bash sneak
usermod -a -G sudo sneak
echo "sneak ALL=NOPASSWD:ALL" > /etc/sudoers.d/sneak
fi
# run the rest as sneak:
sudo -H -u sneak bash user-setup.sh