@cryptotaxi247 / netdata-1 / commits / 698721a59

allow less verbose container image build (#5187)

[netdata release candidate]

Paweł Krupa committed Jan 17, 2019 at 21:20 UTC 698721a59f16a2d856043206e8f3d65a210b3ab4
2 files changed +7 -5
packaging/docker/Dockerfile
+2 -2
@@ -6,6 +6,7 @@
6 ARG ARCH=amd64-v3.8
7 FROM multiarch/alpine:${ARCH} as builder
8
9 +ARG OUTPUT="/dev/stdout"
10 # Install prerequisites
11 RUN apk --no-cache add alpine-sdk \
12 autoconf \
@@ -33,8 +34,7 @@ WORKDIR /opt/netdata.git
34
35 # Install from source
36 RUN chmod +x netdata-installer.sh && \
36 - sync && sleep 1 && \
37 - ./netdata-installer.sh --dont-wait --dont-start-it
37 + ./netdata-installer.sh --dont-wait --dont-start-it &>${OUTPUT}
38
39 # files to one directory
40 RUN mkdir -p /app/usr/sbin/ \
packaging/docker/build.sh
+5 -3
@@ -39,9 +39,11 @@ docker run --rm --privileged multiarch/qemu-user-static:register --reset
39
40 # Build images using multi-arch Dockerfile.
41 for ARCH in "${ARCHITECTURES[@]}"; do
42 - eval docker build --build-arg ARCH="${ARCH}-v3.8" \
43 - --tag "${REPOSITORY}:${VERSION}-${ARCH}" \
44 - --file packaging/docker/Dockerfile ./ ${BG}
42 + eval docker build \
43 + --build-arg ARCH="${ARCH}-v3.8" \
44 + --build-arg OUTPUT=/dev/null \
45 + --tag "${REPOSITORY}:${VERSION}-${ARCH}" \
46 + --file packaging/docker/Dockerfile ./ ${BG}
47 done
48 wait
49