Skip to content
Snippets Groups Projects
Commit 0b942531 authored by Kamil Trzcinski's avatar Kamil Trzcinski
Browse files

Update runner's docs to support procedure for 0.5.0

parent 0b13a8e7
No related branches found
No related tags found
No related merge requests found
......@@ -16,64 +16,6 @@ gitlab-ci-multi-runner register \
--docker-postgres latest --docker-redis latest
```
### 2. Add job to test with
#### MySQL
Paste the snippet below at the jobs page to run the GitLab CE tests with MySQL:
```bash
wget -q http://ftp.de.debian.org/debian/pool/main/p/phantomjs/phantomjs_1.9.0-1+b1_amd64.deb
dpkg -i phantomjs_1.9.0-1+b1_amd64.deb
apt-get update -qq
apt-get install -qq nodejs
bundle install --deployment --path /cache
cp config/application.yml.example config/application.yml
cp config/database.yml.mysql config/database.yml
sed -i 's/username:.*/username: root/g' config/database.yml
sed -i 's/password:.*/password:/g' config/database.yml
sed -i 's/# socket:.*/host: mysql/g' config/database.yml
cp config/resque.yml.example config/resque.yml
sed -i 's/localhost/redis/g' config/resque.yml
bundle exec rake db:create
bundle exec rake db:setup
bundle exec rake spec
```
#### PostgreSQL
Paste the snippet below at the jobs page to run the GitLab CE tests with PostgresSQL:
```bash
wget -q http://ftp.de.debian.org/debian/pool/main/p/phantomjs/phantomjs_1.9.0-1+b1_amd64.deb
dpkg -i phantomjs_1.9.0-1+b1_amd64.deb
apt-get update -qq
apt-get install -qq nodejs
bundle install --deployment --path /cache
cp config/application.yml.example config/application.yml
cp config/database.yml.postgresql config/database.yml
sed -i 's/username:.*/username: postgres/g' config/database.yml
sed -i 's/password:.*/password:/g' config/database.yml
sed -i 's/# socket:.*/host: postgres/g' config/database.yml
cp config/resque.yml.example config/resque.yml
sed -i 's/localhost/redis/g' config/resque.yml
bundle exec rake db:create
bundle exec rake db:setup
bundle exec rake spec
```
----
You now have GitLab CI integration testing instance with bundle caching.
......
......@@ -16,64 +16,6 @@ gitlab-ci-multi-runner register \
--docker-postgres latest --docker-redis latest
```
### 2. Add a job to test with
#### MySQL
Paste the snippet below at the jobs page to run the GitLab CE tests with MySQL:
```bash
wget -q http://ftp.de.debian.org/debian/pool/main/p/phantomjs/phantomjs_1.9.0-1+b1_amd64.deb
dpkg -i phantomjs_1.9.0-1+b1_amd64.deb
apt-get update -qq
apt-get install -y -qq libicu-dev libkrb5-dev cmake nodejs
bundle install --deployment --path /cache
cp config/gitlab.yml.example config/gitlab.yml
cp config/database.yml.mysql config/database.yml
sed -i 's/username:.*/username: root/g' config/database.yml
sed -i 's/password:.*/password:/g' config/database.yml
sed -i 's/# socket:.*/host: mysql/g' config/database.yml
cp config/resque.yml.example config/resque.yml
sed -i 's/localhost/redis/g' config/resque.yml
bundle exec rake db:create
bundle exec rake test_ci
```
#### PostgreSQL
Paste the snippet below at the jobs page to run the GitLab CE tests with PostgreSQL:
```bash
wget -q http://ftp.de.debian.org/debian/pool/main/p/phantomjs/phantomjs_1.9.0-1+b1_amd64.deb
dpkg -i phantomjs_1.9.0-1+b1_amd64.deb
apt-get update -qq
apt-get install -y -qq libicu-dev libkrb5-dev cmake nodejs
bundle install --deployment --path /cache
cp config/gitlab.yml.example config/gitlab.yml
cp config/database.yml.postgresql config/database.yml
sed -i 's/username:.*/username: postgres/g' config/database.yml
sed -i 's/password:.*/password:/g' config/database.yml
sed -i 's/pool:.*/&\n host: postgres/g' config/database.yml
cp config/resque.yml.example config/resque.yml
sed -i 's/localhost/redis/g' config/resque.yml
bundle exec rake db:create
bundle exec rake test_ci
```
----
You now have a GitLab CE integration testing instance with bundle caching.
......
### Docker executor
TBD
......@@ -25,26 +25,18 @@ curl -sSL https://get.docker.com/ | sh
Create a GitLab CI user (on Linux):
```
sudo useradd --comment 'GitLab Runner' --create-home gitlab_ci_multi_runner --shell /bin/bash
sudo usermod -aG docker gitlab_ci_multi_runner
sudo useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash
```
Register the runner:
```bash
cd ~gitlab_ci_multi_runner
sudo -u gitlab_ci_multi_runner -H gitlab-ci-multi-runner register
sudo gitlab-ci-multi-runner register
```
Secure `config.toml`:
```bash
sudo chmod 0600 config.toml
```
Install and run as service:
Install and run as service (on Linux):
```bash
sudo gitlab-ci-multi-runner install --user=gitlab_ci_multi_runner
sudo gitlab-ci-multi-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner
sudo gitlab-ci-multi-runner start
```
......
......@@ -31,8 +31,7 @@ yum install gitlab-ci-multi-runner
Register the runner:
```bash
cd ~gitlab_ci_multi_runner
gitlab-ci-multi-runner register
sudo gitlab-ci-multi-runner register
Please enter the gitlab-ci coordinator URL (e.g. http://gitlab-ci.org:3000/ )
https://ci.gitlab.org/
......
......@@ -38,6 +38,7 @@ running already the config should be automatically reloaded!
Install runner as service and start it:
```bash
cd ~
gitlab-ci-multi-runner install
gitlab-ci-multi-runner start
```
......
......@@ -14,6 +14,8 @@ On the other hand there's privileged mode which enables full access to host syst
## Systems with Docker installed
**This applies to installations below 0.5.0 or one's that were upgraded to newer version**
When installing package on Linux systems with Docker installed, `gitlab-ci-multi-runner` will create user that will have permisssion to access `Docker` daemon. This makes the jobs run with `shell` executor able to access `docker` with full permissions and potenially allows root access to the server.
### Usage of SSH executor
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment