13 lines
521 B
Docker
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"]
|