Commit bb0889fe authored by A-Gordon's avatar A-Gordon

Container with pre-installed dependencies to speed up builds

parents
Pipeline #33 passed with stage
in 7 minutes and 22 seconds
build_image:
image: docker:git
services:
- docker:dind
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN docker.steamhaus.co.uk
- docker build -t docker.steamhaus.co.uk/steamhaus/gitlab_ci_container .
- docker run docker.steamhaus.co.uk/steamhaus/gitlab_ci_container
- docker push docker.steamhaus.co.uk/steamhaus/gitlab_ci_container:latest
only:
- master
\ No newline at end of file
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 AMICLEANER_VERSION 0.1.2
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\
&& 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
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