Created
February 22, 2022 03:32
-
-
Save saurabh-sp-tripathi/cdcd7634e76f63d7b00dcaa44abd252d to your computer and use it in GitHub Desktop.
A container capable of nomad + consul + levant + ansible operations
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 quay.io/centos/centos:stream8 | |
ARG levant_bin_url=https://releases.hashicorp.com/levant/0.3.1/levant_0.3.1_linux_386.zip | |
RUN yum -y install epel-release && \ | |
yum -y install ansible && \ | |
yum -y install python3 && \ | |
yum install python3-pip -y && \ | |
pip3 install netaddr && \ | |
yum -y install yum-utils && \ | |
yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo && \ | |
yum -y install nomad && \ | |
yum -y install consul && \ | |
yum -y install jq && \ | |
yum -y install unzip && \ | |
echo -e "[azure-cli]\n\ | |
name=Azure CLI\n\ | |
baseurl=https://packages.microsoft.com/yumrepos/azure-cli\n\ | |
enabled=1\n\ | |
gpgcheck=1\n\ | |
gpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/azure-cli.repo && \ | |
yum -y install azure-cli && \ | |
yum -y install wget && \ | |
wget $levant_bin_url && unzip $(basename $levant_bin_url) && sudo mv levant /usr/local/bin && rm $(basename $levant_bin_url) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment