-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.tagged
35 lines (31 loc) · 1.03 KB
/
Dockerfile.tagged
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM ubuntu:22.04
ARG VERSION
ENV DEBIAN_FRONTEND noninteractive
LABEL org.opencontainers.image.description "Logicmonitor Bootstrap Collector"
# NTP is needed for some collector operations
RUN apt update && apt-get update && apt upgrade -y \
&& apt install software-properties-common -y \
&& add-apt-repository ppa:deadsnakes/ppa \
&& apt-get install --no-install-recommends -y \
tcl \
inetutils-traceroute \
file \
iputils-ping \
ntp \
perl \
procps \
xxd \
curl \
wget \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/*
RUN curl -s https://api.github.com/repos/vkumbhar94/lm-bootstrap-collector/releases/tags/${VERSION} \
| grep "browser_download_url.*`(uname -s)`.*86_64" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi - \
&& ls | grep -e "lm-bootstrap.*.tar.gz" | xargs tar -zxf && cp lm-bootstrap-collector /usr/local/bin/ \
&& cp lm-bootstrap-collector /usr/local/bin/lmbc && cp lm-bootstrap-collector /usr/bin/lmbc
RUN mkdir /usr/local/logicmonitor
COPY ./entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]