Chef to install GitLab CI.
- GitLab CI: 4.0.0
- GitLab CI Runner: 4.0.0
This cookbook is inspired by the excellent Gitlab Cookbook from oogm and is developed to work well with this cookbook. It will work with others, too. For security reasons we decided to use docker for all gitlab ci runner. This enables us to quickly create and destroy runner.
Warning: This cookbook is still in development. gitlabci:server
with mysql is quite well testen. Postgre and runner deployment is still in early development.
- Ubuntu (12.04, 12.10, 13.04, 13.10)
- Ubuntu (13.04, 13.10)
$ gem install berkshelf
$ vagrant plugin install vagrant-berkshelf --plugin-version '>= 2.0.1'
$ vagrant plugin install vagrant-omnibus
$ git clone https://github.com/chris-rock/chef-gitlabci.git ./gitlabci
$ cd ./gitlabci
$ vagrant up server
$ vagrant up runner
Example of node config.
{
"mysql": {
"server_root_password": "rootpass",
"server_repl_password": "replpass",
"server_debian_password": "debianpass"
},
"gitlabci": {
"database_adapter": "mysql",
"database_password": "datapass",
"env" : "production"
},
"run_list":[
"gitlabci::server"
]
}
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write you change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
Authors: Christoph Hartmann
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.