File tree Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -245,6 +245,10 @@ This installs and starts GitLab with nginx and your chosen database.
245
245
246
246
This installs GitLab Runner. This does not have to be on the same system, in fact GitLab recommend against it.
247
247
248
+ ## docker
249
+
250
+ This installs Docker and starts the service. It includes the ` runner ` recipe above.
251
+
248
252
## mysql, postgres
249
253
250
254
These are internal, set ` gitlab['database']['type'] ` instead.
Original file line number Diff line number Diff line change 31
31
depends cb_depend
32
32
end
33
33
depends 'chef_nginx' , '~> 5.1'
34
+ depends 'docker' , '~> 2.0'
34
35
depends 'mysql' , '~> 6.0'
35
36
depends 'mysql2_chef_gem'
36
37
Original file line number Diff line number Diff line change
1
+ #
2
+ # Cookbook Name:: gitlab
3
+ # Recipe:: docker
4
+ #
5
+ # Copyright 2016, Yakara Ltd
6
+ #
7
+ # Licensed under the Apache License, Version 2.0 (the "License");
8
+ # you may not use this file except in compliance with the License.
9
+ # You may obtain a copy of the License at
10
+ #
11
+ # http://www.apache.org/licenses/LICENSE-2.0
12
+ #
13
+ # Unless required by applicable law or agreed to in writing, software
14
+ # distributed under the License is distributed on an "AS IS" BASIS,
15
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ # See the License for the specific language governing permissions and
17
+ # limitations under the License.
18
+ #
19
+
20
+ include_recipe 'gitlab::runner'
21
+
22
+ docker_service 'default' do
23
+ action [ :create , :start ]
24
+ end
25
+
26
+ group 'docker' do
27
+ members 'gitlab-runner'
28
+ append true
29
+ action :modify
30
+ end
You can’t perform that action at this time.
0 commit comments