Skip to content

Instantly share code, notes, and snippets.

@maxux
Last active October 22, 2018 14:33
Show Gist options
  • Save maxux/7170c834eec641a6c612c9efee324291 to your computer and use it in GitHub Desktop.
Save maxux/7170c834eec641a6c612c9efee324291 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -ex
# make output directory
ARCHIVE=/tmp/archives
FLIST=/tmp/flist
mkdir -p $ARCHIVE
# install system deps
apt-get update
apt-get install -y curl build-essential redis-server
curl jumpscale.maxux.net | bash
export PATH=$PATH:/opt/code/github/threefoldtech/jumpscale_core/cmds
. /etc/profile
cp -rv /opt/code/github/threefoldtech/jumpscale_prefab/modules/tools/capacity/flist/* /
sed -i s/python3.6/python3.5/g /etc/start
pushd /opt
git clone https://github.com/threefoldtech/seektime
cd seektime
make
cp seektime /usr/bin
popd
rm -rf seektime
rm -rf /var/lib/apt/lists/*
rm -rf /usr/share/doc
rm -rf /usr/share/man
rm -rf /root/.cache/pip
apt-get remove --purge -y build-essential
apt-get autoremove --purge -y
echo "nameserver 8.8.8.8" > /etc/resolv.conf
echo "tar -czpvf /mnt/tmp/fullcapacity.tar.gz --exclude dev --exclude sys --exclude proc --exclude tmp --exclude mnt /"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment