Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gitlab_ci_container
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
steamhaus
gitlab_ci_container
Commits
bb0889fe
Commit
bb0889fe
authored
Aug 17, 2016
by
A-Gordon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Container with pre-installed dependencies to speed up builds
parents
Pipeline
#33
passed with stage
in 7 minutes and 22 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
.gitlab-ci.yml
.gitlab-ci.yml
+12
-0
Dockerfile
Dockerfile
+18
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
bb0889fe
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
Dockerfile
0 → 100644
View file @
bb0889fe
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment