Skip to content

Instantly share code, notes, and snippets.

@maxux
Created August 9, 2018 08:07
Show Gist options
  • Save maxux/8638d70d17a19b8138d503081884570d to your computer and use it in GitHub Desktop.
Save maxux/8638d70d17a19b8138d503081884570d to your computer and use it in GitHub Desktop.
#!/bin/bash
set -ex
makeopts="-j 5"
apt-get update
apt-get install -y build-essential
apt-get install -y git libsnappy-dev libz-dev libtar-dev libb2-dev
apt-get install -y autoconf libtool libjansson-dev libhiredis-dev libsqlite3-dev
cd /opt
# download
git clone https://github.com/opensourcerouting/c-capnproto
cd c-capnproto
git submodule update --init --recursive
cd ..
git clone https://github.com/threefoldtech/0-flist
# building
cd c-capnproto
autoreconf -f -i -s
./configure
make ${makeopts}
make install
cd ..
cd 0-flist
cd src
make release
cd ..
cd tool
make static
cp src/zflist zflist-static
cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment