summaryrefslogtreecommitdiffstats
path: root/packaging/makeself/build-x86_64-static.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2019-02-21 19:34:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2019-02-21 19:34:01 +0000
commit66564c2324abc58b24327b763e1113ff781156a2 (patch)
tree2480212cd47149a3fda5225b57689d0126546e23 /packaging/makeself/build-x86_64-static.sh
parentAdding upstream version 1.12.0. (diff)
downloadnetdata-66564c2324abc58b24327b763e1113ff781156a2.tar.xz
netdata-66564c2324abc58b24327b763e1113ff781156a2.zip
Adding upstream version 1.12.1.upstream/1.12.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'packaging/makeself/build-x86_64-static.sh')
-rwxr-xr-xpackaging/makeself/build-x86_64-static.sh42
1 files changed, 0 insertions, 42 deletions
diff --git a/packaging/makeself/build-x86_64-static.sh b/packaging/makeself/build-x86_64-static.sh
deleted file mode 100755
index 69ddf2bf..00000000
--- a/packaging/makeself/build-x86_64-static.sh
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/usr/bin/env bash
-# SPDX-License-Identifier: GPL-3.0-or-later
-
-. $(dirname "$0")/../installer/functions.sh || exit 1
-
-set -e
-
-DOCKER_CONTAINER_NAME="netdata-package-x86_64-static-alpine37"
-
-if ! sudo docker inspect "${DOCKER_CONTAINER_NAME}" >/dev/null 2>&1
-then
- # To run interactively:
- # sudo docker run -it netdata-package-x86_64-static /bin/sh
- # (add -v host-dir:guest-dir:rw arguments to mount volumes)
- #
- # To remove images in order to re-create:
- # sudo docker rm -v $(sudo docker ps -a -q -f status=exited)
- # sudo docker rmi netdata-package-x86_64-static
- #
- # This command maps the current directory to
- # /usr/src/netdata.git
- # inside the container and runs the script install-alpine-packages.sh
- # (also inside the container)
- #
- run sudo docker run -v $(pwd):/usr/src/netdata.git:rw alpine:3.7 \
- /bin/sh /usr/src/netdata.git/packaging/makeself/install-alpine-packages.sh
-
- # save the changes made permanently
- id=$(sudo docker ps -l -q)
- run sudo docker commit ${id} "${DOCKER_CONTAINER_NAME}"
-fi
-
-# Run the build script inside the container
-run sudo docker run -a stdin -a stdout -a stderr -i -t -v \
- $(pwd):/usr/src/netdata.git:rw \
- "${DOCKER_CONTAINER_NAME}" \
- /bin/sh /usr/src/netdata.git/packaging/makeself/build.sh "${@}"
-
-if [ "${USER}" ]
- then
- sudo chown -R "${USER}" .
-fi