Skip to content

Instantly share code, notes, and snippets.

@Knight1
Last active October 24, 2019 02:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Knight1/f903d5230890f8fa283601bee1494280 to your computer and use it in GitHub Desktop.
Save Knight1/f903d5230890f8fa283601bee1494280 to your computer and use it in GitHub Desktop.
Simple Dockerfile for Ripe Atlas Software Probe
FROM centos:centos7
LABEL maintainer="Tobias Sachs"
RUN curl -O 'https://ftp.ripe.net/ripe/atlas/software-probe/centos7/noarch/ripe-atlas-repo-1-2.el7.noarch.rpm' \
&& yum install ripe-atlas-repo-1-2.el7.noarch.rpm -y \
&& yum install atlasswprobe openssh-clients iproute sysvinit-tools net-tools -y \
&& systemctl enable atlas.service \
&& (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == \
systemd-tmpfiles-setup.service ] || rm -f $i; done); \
rm -f /lib/systemd/system/multi-user.target.wants/*;\
rm -f /etc/systemd/system/*.wants/*;\
rm -f /lib/systemd/system/local-fs.target.wants/*; \
rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
rm -f /lib/systemd/system/basic.target.wants/*;\
rm -f /lib/systemd/system/anaconda.target.wants/*; \
echo "REG_1_HOST=193.0.19.246" > /var/atlas-probe/bin/reg_servers.sh;
VOLUME [ "/sys/fs/cgroup" ]
CMD ["/usr/sbin/init"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment