Commit 6119f272 authored by A-Gordon's avatar A-Gordon

Changed amicleaner install method

parent bb0889fe
Pipeline #1524 passed with stage
in 3 minutes and 14 seconds
FROM centos:latest
MAINTAINER Steamhaus <tech@steamhaus.co.uk>
ENV PACKER_URL https://releases.hashicorp.com/packer/0.10.1/packer_0.10.1_linux_amd64.zip
ENV PACKER_VERSION 0.12.3
ENV AMICLEANER_VERSION 0.1.2
ENV PACKER_URL https://releases.hashicorp.com/packer/${PACKER_VERSION}/packer_${PACKER_VERSION}_linux_amd64.zip
RUN yum install -y git wget epel-release ansible unzip ruby\
&& wget https://bootstrap.pypa.io/get-pip.py\
&& python get-pip.py\
&& yum update -y\
&& wget ${PACKER_URL}\
&& unzip packer_0.10.1_linux_amd64.zip\
&& unzip packer_${PACKER_VERSION}_linux_amd64.zip\
&& mv packer /usr/local/bin/packer\
&& wget https://github.com/bonclay7/aws-amicleaner/archive/v${AMICLEANER_VERSION}.zip\
&& unzip v${AMICLEANER_VERSION}.zip\
&& chmod 755 aws-amicleaner-0.1.2/amicleaner/cli.py\
&& pip install -r aws-amicleaner-0.1.2/requirements.txt\
&& ln -s /aws-amicleaner-0.1.2/amicleaner/cli.py /usr/local/bin/amicleaner
&& chmod 755 aws-amicleaner-${AMICLEANER_VERSION}/amicleaner/cli.py\
&& pip install -r aws-amicleaner-${AMICLEANER_VERSION}/requirements.txt\
&& pip install aws-amicleaner
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment