@cryptotaxi247 / netdata-1 / commits / ff9222fb9

Bump static builds to use Alpine 3.15 as a base. (#11836)

Austin S. Hemmelgarn committed Dec 1, 2021 at 11:02 UTC ff9222fb97e67835e6e2f31bb9d29a730338c4e2
1 file changed +5 -5
packaging/makeself/build-static.sh
+5 -5
@@ -20,7 +20,7 @@ case ${BUILDARCH} in
20 ;;
21 esac
22
23 -DOCKER_CONTAINER_NAME="netdata-package-${BUILDARCH}-static-alpine314"
23 +DOCKER_CONTAINER_NAME="netdata-package-${BUILDARCH}-static-alpine315"
24
25 if [ "${BUILDARCH}" != "$(uname -m)" ] && [ "$(uname -m)" = 'x86_64' ] && [ -z "${SKIP_EMULATION}" ]; then
26 docker run --rm --privileged multiarch/qemu-user-static --reset -p yes || exit 1
@@ -40,12 +40,12 @@ if ! docker inspect "${DOCKER_CONTAINER_NAME}" > /dev/null 2>&1; then
40 # inside the container and runs the script install-alpine-packages.sh
41 # (also inside the container)
42 #
43 - if docker inspect alpine:3.14 > /dev/null 2>&1; then
44 - run docker image remove alpine:3.14
45 - run docker pull --platform=${platform} alpine:3.14
43 + if docker inspect alpine:3.15 > /dev/null 2>&1; then
44 + run docker image remove alpine:3.15
45 + run docker pull --platform=${platform} alpine:3.15
46 fi
47
48 - run docker run --platform=${platform} -v "$(pwd)":/usr/src/netdata.git:rw alpine:3.14 \
48 + run docker run --platform=${platform} -v "$(pwd)":/usr/src/netdata.git:rw alpine:3.15 \
49 /bin/sh /usr/src/netdata.git/packaging/makeself/install-alpine-packages.sh
50
51 # save the changes made permanently