⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
usr
/
local
/
src
/
netdata
/
packaging
/
View File Name :
build_package_install_test.sh
#!/bin/sh # SPDX-License-Identifier: GPL-3.0-or-later set -e # If we are not in netdata git repo, at the top level directory, FAIL TOP_LEVEL=$(basename "$(git rev-parse --show-toplevel)") CWD=$(git rev-parse --show-cdup || echo "") if [ -n "${CWD}" ] || [ ! "${TOP_LEVEL}" = "netdata" ]; then echo "Run as ./packaging/$(basename "$0") from top level directory of netdata git repository" exit 1 fi if [ $# -lt 2 ] || [ $# -gt 3 ]; then echo "Usage: ./packaging/$(basename "$0") <distro> <distro_version> [<netdata_version>]" exit 1 fi if ! command -v docker > /dev/null; then echo "Docker CLI not found. You need Docker to run this!" exit 2 fi DISTRO="$1" DISTRO_VERSION="$2" # TODO: Auto compute this? VERSION="${3:-1.19.0}" TAG="netdata/netdata:${DISTRO}_${DISTRO_VERSION}" docker build \ -f ./packaging/Dockerfile.packager \ --build-arg DISTRO="$DISTRO" \ --build-arg DISTRO_VERSION="$DISTRO_VERSION" \ --build-arg VERSION="$VERSION" \ -t "$TAG" . | tee build.log