-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
22 lines (21 loc) · 1.08 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM alpine:latest AS builder
MAINTAINER [email protected]
RUN apk add --no-cache autoconf automake g++ gcc git libtool linux-headers make openssl-dev patch sed &&\
git clone --recursive https://github.com/RIPE-NCC/ripe-atlas-software-probe.git &&\
cd ripe-atlas-software-probe/ &&\
autoreconf -iv &&\
./configure --prefix=/probe --disable-chown --disable-setcap-install --disable-systemd &&\
make install
FROM alpine:latest AS probe
MAINTAINER [email protected]
COPY --from=builder /probe /probe
RUN apk add --no-cache libcap net-tools openssh tini &&\
adduser -D ripe-atlas &&\
setcap cap_net_raw=ep /probe/libexec/ripe-atlas/measurement/busybox
WORKDIR /probe
VOLUME ["/probe/etc/ripe-atlas", "/probe/var/run/ripe-atlas/status"]
# "/probe/var/spool/ripe-atlas/data" can also be defined as a volume, but it is optional
ENTRYPOINT ["/sbin/tini", "--"]
CMD [ ! -f /probe/etc/ripe-atlas/config.txt ] && echo "RXTXRPT=yes" > /probe/etc/ripe-atlas/config.txt ;\
[ ! -f /probe/etc/ripe-atlas/mode ] && echo "prod" > /probe/etc/ripe-atlas/mode ;\
/probe/sbin/ripe-atlas