cleanup
This commit is contained in:
@@ -20,7 +20,7 @@ mkdir -p "/var/lib/lxc/${CONTAINER}/rootfs/etc"
|
||||
rm -f "/var/lib/lxc/${CONTAINER}/rootfs/etc/resolv.conf"
|
||||
echo "nameserver 8.8.8.8" > "/var/lib/lxc/${CONTAINER}/rootfs/etc/resolv.conf"
|
||||
|
||||
# assign static IP via LXC config (host-side, always works)
|
||||
# assign static IP via LXC config (host-side, always works hopefully)
|
||||
cat >> "/var/lib/lxc/${CONTAINER}/config" <<EOF
|
||||
lxc.net.0.ipv4.address = ${CONTAINER_IP}/24
|
||||
lxc.net.0.ipv4.gateway = 10.100.0.1
|
||||
@@ -43,7 +43,7 @@ EOF
|
||||
lxc-start -n "$CONTAINER"
|
||||
sleep 5
|
||||
|
||||
# install SSH + VSCode Remote prerequisites
|
||||
# install SSH + various prerequisites...
|
||||
lxc-attach --clear-env -n "$CONTAINER" -- /bin/bash -c "
|
||||
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
apt-get update && apt-get install -y \
|
||||
@@ -53,7 +53,7 @@ lxc-attach --clear-env -n "$CONTAINER" -- /bin/bash -c "
|
||||
tar gzip \
|
||||
procps \
|
||||
locales
|
||||
# generate a UTF-8 locale (VSCode expects this)
|
||||
# generate a UTF-8 locale
|
||||
sed -i 's/# en_US.UTF-8/en_US.UTF-8/' /etc/locale.gen
|
||||
locale-gen
|
||||
# SSH config
|
||||
|
||||
Reference in New Issue
Block a user