summaryrefslogtreecommitdiffstats
path: root/build/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build/build.sh')
-rwxr-xr-xbuild/build.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/build/build.sh b/build/build.sh
new file mode 100755
index 00000000..ee087b98
--- /dev/null
+++ b/build/build.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+if [ -f build.sh ]; then
+ cd ../ || exit 1
+fi
+
+if [ "$IS_CONTAINER" != "" ]; then
+ autoreconf -ivf
+ ./configure --enable-maintainer-mode
+ make dist
+ rm -rf autom4te.cache
+else
+ if [[ "$(docker images -q netdata-gcc-builder:latest 2> /dev/null)" == "" ]]; then
+ docker build -t netdata-gcc-builder:latest -f build/Dockerfile .
+ fi
+ docker run --rm -it \
+ --env IS_CONTAINER=TRUE \
+ --volume "${PWD}:/project:Z" \
+ --workdir "/project" \
+ netdata:gcc \
+ ./.travis/build.sh
+fi