diff options
author | Dylan Wang <wanghaoyu@frazil.me> | 2020-02-06 05:26:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-06 07:26:06 +1000 |
commit | 9d6c9219baae97bb50050b1a3c3a80326cbc0c74 (patch) | |
tree | 0262ea60b33c8d3660d0511168fe396c3e6f0275 | |
parent | d9f977b864a8abc2213201817a93a041c30d17b4 (diff) |
support prom remote write (#7691)
-rwxr-xr-x | packaging/makeself/install-alpine-packages.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/packaging/makeself/install-alpine-packages.sh b/packaging/makeself/install-alpine-packages.sh index bcb971f8f3..7872f2bcf7 100755 --- a/packaging/makeself/install-alpine-packages.sh +++ b/packaging/makeself/install-alpine-packages.sh @@ -23,6 +23,7 @@ apk add --no-cache \ automake \ gcc \ make \ + cmake \ libtool \ pkgconfig \ util-linux-dev \ @@ -34,8 +35,22 @@ apk add --no-cache \ libuv-dev \ lz4-dev \ openssl-dev \ + snappy-dev \ + protobuf-dev \ || exit 1 +# snappy doesnt have static version in alpine, let's compile it +export SNAPPY_VER="1.1.7" +wget -O /snappy.tar.gz https://github.com/google/snappy/archive/${SNAPPY_VER}.tar.gz +cd / +tar -xf snappy.tar.gz +rm snappy.tar.gz +cd /snappy-${SNAPPY_VER} +mkdir build +cd build +cmake -DCMAKE_BUILD_SHARED_LIBS=true -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_LIBDIR=lib ../ +make && make install + # Judy doesnt seem to be available on the repositories, download manually and install it export JUDY_VER="1.0.5" wget -O /judy.tar.gz http://downloads.sourceforge.net/project/judy/judy/Judy-${JUDY_VER}/Judy-${JUDY_VER}.tar.gz |