diff options
author | Paul Emm. Katsoulakis <34388743+paulkatsoulakis@users.noreply.github.com> | 2019-05-17 13:27:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-17 13:27:15 +0300 |
commit | a0fbb47c97dd1f6bd4af8faac6e1fcecb041424a (patch) | |
tree | 865a1d895b84c82191f010c78f42cb2d2a752541 /packaging/makeself/install-alpine-packages.sh | |
parent | 73e108f698f1cfd54f3bda223a810a9d2c1a1fa8 (diff) |
netdata/packaging: Fix makeself packaging (#6041)
* netdata/packaging: Fix makeself with the new package dependencies
* netdata/packaging: Allow artifacts to be built under different repository when needed
Diffstat (limited to 'packaging/makeself/install-alpine-packages.sh')
-rwxr-xr-x | packaging/makeself/install-alpine-packages.sh | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/packaging/makeself/install-alpine-packages.sh b/packaging/makeself/install-alpine-packages.sh index 695be4d4f5..bcb971f8f3 100755 --- a/packaging/makeself/install-alpine-packages.sh +++ b/packaging/makeself/install-alpine-packages.sh @@ -1,9 +1,16 @@ #!/usr/bin/env sh -# SPDX-License-Identifier: GPL-3.0-or-later +# +# Installation script for the alpine host +# to prepare the static binary +# +# Copyright: SPDX-License-Identifier: GPL-3.0-or-later +# +# Author: Paul Emm. Katsoulakis <paul@netdata.cloud> -# this script should be running in alpine linux -# install the required packages +# Packaging update apk update + +# Add required APK packages apk add --no-cache \ bash \ wget \ @@ -24,4 +31,18 @@ apk add --no-cache \ zlib-dev \ libmnl-dev \ libnetfilter_acct-dev \ + libuv-dev \ + lz4-dev \ + openssl-dev \ || exit 1 + +# 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 +cd / +tar -xf judy.tar.gz +rm judy.tar.gz +cd /judy-${JUDY_VER} +CFLAGS="-O2 -s" CXXFLAGS="-O2 -s" ./configure +make +make install; |