Skip to content
Snippets Groups Projects
Commit bbd71a81 authored by Marin Jankovski's avatar Marin Jankovski
Browse files

Add recipes for installing runner, docker-engine and docker-machine.

parent 2aca4390
No related branches found
No related tags found
No related merge requests found
source "https://supermarket.chef.io"
cookbook 'apt'
cookbook 'yum'
GEM
remote: https://rubygems.org/
specs:
addressable (2.4.0)
berkshelf (4.3.3)
addressable (~> 2.3, >= 2.3.4)
berkshelf-api-client (~> 2.0, >= 2.0.2)
buff-config (~> 1.0)
buff-extensions (~> 1.0)
buff-shell_out (~> 0.1)
celluloid (= 0.16.0)
celluloid-io (~> 0.16.1)
cleanroom (~> 1.0)
faraday (~> 0.9)
httpclient (~> 2.7)
minitar (~> 0.5, >= 0.5.4)
octokit (~> 4.0)
retryable (~> 2.0)
ridley (~> 4.5)
solve (~> 2.0)
thor (~> 0.19)
berkshelf-api-client (2.0.2)
faraday (~> 0.9.1)
httpclient (~> 2.7.0)
ridley (~> 4.5)
buff-config (1.0.1)
buff-extensions (~> 1.0)
varia_model (~> 0.4)
buff-extensions (1.0.0)
buff-ignore (1.1.1)
buff-ruby_engine (0.1.0)
buff-shell_out (0.2.0)
buff-ruby_engine (~> 0.1.0)
celluloid (0.16.0)
timers (~> 4.0.0)
celluloid-io (0.16.2)
celluloid (>= 0.16.0)
nio4r (>= 1.1.0)
chef-config (12.10.24)
fuzzyurl (~> 0.8.0)
mixlib-config (~> 2.0)
mixlib-shellout (~> 2.0)
cleanroom (1.0.0)
diff-lcs (1.2.5)
erubis (2.7.0)
faraday (0.9.2)
multipart-post (>= 1.2, < 3)
fuzzyurl (0.8.0)
hashie (3.4.4)
hitimes (1.2.4)
httpclient (2.7.2)
json (1.8.3)
minitar (0.5.4)
mixlib-authentication (1.4.0)
mixlib-log
rspec-core (~> 3.2)
rspec-expectations (~> 3.2)
rspec-mocks (~> 3.2)
mixlib-config (2.2.1)
mixlib-log (1.6.0)
mixlib-shellout (2.2.6)
molinillo (0.4.5)
multipart-post (2.0.0)
nio4r (1.2.1)
octokit (4.3.0)
sawyer (~> 0.7.0, >= 0.5.3)
retryable (2.0.3)
ridley (4.5.1)
addressable
buff-config (~> 1.0)
buff-extensions (~> 1.0)
buff-ignore (~> 1.1)
buff-shell_out (~> 0.1)
celluloid (~> 0.16.0)
celluloid-io (~> 0.16.1)
chef-config (>= 12.5.0)
erubis
faraday (~> 0.9.0)
hashie (>= 2.0.2, < 4.0.0)
httpclient (~> 2.7)
json (>= 1.7.7)
mixlib-authentication (>= 1.3.0)
retryable (~> 2.0)
semverse (~> 1.1)
varia_model (~> 0.4.0)
rspec-core (3.4.4)
rspec-support (~> 3.4.0)
rspec-expectations (3.4.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-mocks (3.4.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-support (3.4.1)
sawyer (0.7.0)
addressable (>= 2.3.5, < 2.5)
faraday (~> 0.8, < 0.10)
semverse (1.2.1)
solve (2.0.3)
molinillo (~> 0.4.2)
semverse (~> 1.1)
thor (0.19.1)
timers (4.0.4)
hitimes
varia_model (0.4.1)
buff-extensions (~> 1.0)
hashie (>= 2.0.2, < 4.0.0)
PLATFORMS
ruby
DEPENDENCIES
berkshelf
BUNDLED WITH
1.11.2
default['cookbook-gitlab-runner']['docker-machine']['install'] = true
default['cookbook-gitlab-runner']['docker-machine']['version'] = "0.7.0"
default['cookbook-gitlab-runner']['docker-machine']['checksum'] = "21e490d5cdfa0d21e543e06b73180614f72e6c18a940f476a64cf084cea23aa5"
Loading
Loading
@@ -5,3 +5,7 @@ license 'All rights reserved'
description 'Installs/Configures gitlab-runner'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.1.0'
depends 'apt'
depends 'yum'
Loading
Loading
@@ -2,7 +2,8 @@
# Cookbook Name:: cookbook-gitlab-runner
# Recipe:: default
#
# Copyright 2016, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
# Copyright 2016, GitLab Inc.
#
include_recipe 'runner_install'
include_recipe 'docker_install'
#
# Cookbook Name:: cookbook-gitlab-runner
# Recipe:: docker install
#
# Copyright 2016, GitLab Inc.
#
case node['platform_family']
when 'debian'
apt_repository 'docker' do
uri 'https://apt.dockerproject.org/repo'
components ['main']
distribution "#{node['platform']}-#{node['lsb']['codename']}"
keyserver 'hkp://p80.pool.sks-keyservers.net:80'
key '58118E89F3A912897C070ADBF76221572C52609D'
end
when 'rhel'
yum_repository 'docker' do
description 'Docker yum repository'
baseurl 'https://yum.dockerproject.org/repo/main/centos/$releasever/'
gpgkey 'https://yum.dockerproject.org/gpg'
end
end
package 'docker-engine'
if node['cookbook-gitlab-runner']['docker-machine']['install']
remote_file '/usr/bin/docker-machine' do
source "https://github.com/docker/machine/releases/download/v#{node['cookbook-gitlab-runner']['docker-machine']['version']}/docker-machine-Linux-x86_64"
owner 'root'
group 'root'
mode '0755'
checksum node['cookbook-gitlab-runner']['docker-machine']['checksum']
not_if "/usr/bin/docker-machine --version | grep #{node['cookbook-gitlab-runner']['docker-machine']['version']}"
end
end
#
# Cookbook Name:: cookbook-gitlab-runner
# Recipe:: runner_install
#
# Copyright 2016, GitLab Inc.
#
case node['platform_family']
when 'debian'
apt_repository 'gitlab-ci-multi-runner' do
uri "https://packages.gitlab.com/runner/gitlab-ci-multi-runner/#{node['platform']}"
components ['main']
distribution node['lsb']['codename']
key 'https://packages.gitlab.com/runner/gitlab-ci-multi-runner/gpgkey'
end
when 'rhel'
yum_repository 'gitlab-ci-multi-runner' do
description 'GitLab Runner package server'
baseurl "https://packages.gitlab.com/runner/gitlab-ci-multi-runner/el/#{node['platform_version'][0]}/$basearch"
gpgkey 'https://packages.gitlab.com/runner/gitlab-ci-multi-runner/gpgkey'
gpgcheck false # TODO, change when individual packages get signed
end
end
package 'gitlab-ci-multi-runner'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment