mirror of
https://github.com/netdata/netdata.git
synced 2021-06-06 23:03:21 +03:00
The new file in the build_external directory allow cross-host builds (i.e. building Netdata for a Debian system on a Fedora host). The build and execution is wrapped inside docker containers with an appropriate user-land, based on the package builder base images. These containers can be orchestrated into more complex testing environments (e.g. master-slave streaming setups or the ACLK). Rebuilding the netdata agent inside the containers is an incremental build-step (to improve dev time) rather than a clean install.
12 lines
301 B
Docker
12 lines
301 B
Docker
ARG DISTRO=arch
|
|
ARG VERSION=current
|
|
|
|
FROM ${DISTRO}_${VERSION}_dev:latest
|
|
|
|
# Sanitize new source tree by removing config-time state
|
|
COPY . /opt/netdata/latest
|
|
WORKDIR /opt/netdata/latest
|
|
RUN while read -r f; do cp -p "$f" "../source/$f"; done <../manifest
|
|
WORKDIR /opt/netdata/source
|
|
RUN make install
|