Last active
October 24, 2019 02:57
-
-
Save Knight1/f903d5230890f8fa283601bee1494280 to your computer and use it in GitHub Desktop.
Simple Dockerfile for Ripe Atlas Software Probe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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