Merge branch 'master' of github.com:sneak/hacks

This commit is contained in:
Jeffrey Paul 2018-03-06 18:26:45 -05:00
commit 759fcfbd85

View File

@ -6,6 +6,19 @@
#runcmd:
# - curl -fsSL https://raw.githubusercontent.com/sneak/hacks/master/provision.workbox/cloud-init.sh | bash
# make sure we don't OOM
if [[ ! -e /var/swapfile ]]; then
fallocate -l 2G /var/swapfile
chmod 600 /var/swapfile
mkswap /var/swapfile
echo '/var/swapfile none swap sw 0 0' | tee -a /etc/fstab
fi
swapon /var/swapfile
echo 'vm.swappiness=80' >> /etc/sysctl.conf
echo 'vm.vfs_cache_pressure=50' >> /etc/sysctl.conf
sysctl -p
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get -y install git