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
#!/bin/sh | |
apt-get -y install socat | |
curl https://get.acme.sh | sh |
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
# Export IP addresses to support vulnerability scanning | |
# Public IPs | |
touch /tmp/public-ips.txt | |
aws ec2 describe-instances \ | |
--query "Reservations[*].Instances[*].PublicIpAddress" \ | |
--output=text \ | |
>>/tmp/public-ips.txt | |
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
##Dockerfile | |
FROM centos:7 | |
RUN yum update -y && yum install -y wget perl openssl-devel dmidecode sed vim | |
RUN wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash | |
# Edit /etc/yum.repos.d/dell-system-update.repo to point to last supported centos 7 version | |
RUN sed -i '/\[dell-system-update_independent\]/a baseurl=https://linux.dell.com/repo/hardware/DSU_22.08.12/os_independent/' /etc/yum.repos.d/dell-system-update.repo | |
RUN sed -i 's|baseurl=https://linux.dell.com/repo/hardware/dsu/os_independent/|#&|' /etc/yum.repos.d/dell-system-update.repo |