version: '3.3'
services:
  agent_parent:
    build:
      context: ../../..
      dockerfile: build_external/make-install.Dockerfile
      args:
        - DISTRO=arch
        - VERSION=current
    image: arch_current_dev:latest
    command: >
      sh -c "echo -n 00000000-0000-0000-0000-000000000000 >/var/lib/netdata/cloud.d/claimed_id &&
             echo '[agent_cloud_link]' >>/etc/netdata/netdata.conf &&
             echo '  agent cloud link hostname = vernemq' >>/etc/netdata/netdata.conf &&
             echo '  agent cloud link port = 9002' >>/etc/netdata/netdata.conf &&
             /usr/sbin/netdata -D"
    ports:
      - 20000:19999
