Mohammed Naser 3fa880a35a Add Device42 build jobs
Change-Id: I6dfac7d1c2c15b668788918a9825d31824633612
2020-08-14 12:10:08 -04:00

13 lines
521 B
Docker

FROM debian:buster AS builder
RUN apt-get update && \
apt-get -y install curl unzip
RUN curl -o d42-agent-remote.zip \
$(curl -s https://www.device42.com/autodiscovery/ | grep d42-agent-remote | cut -d'"' -f4)
RUN unzip d42-agent-remote.zip
RUN chmod +x d42-agent-remote/d42_autodisc_linux_x64
FROM debian:buster
COPY --from=builder d42-agent-remote/d42_autodisc_linux_x64 /usr/local/bin/d42_autodisc_linux_x64
ENTRYPOINT ["/usr/local/bin/d42_autodisc_linux_x64", "-config", "/etc/device42/inventory.cfg"]