Created
August 9, 2018 08:07
-
-
Save maxux/8638d70d17a19b8138d503081884570d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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