Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
debianmaster authored Dec 10, 2017
1 parent 8463f49 commit fd1b929
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions gitlab-ci-with-openshift/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
```sh
oc adm policy add-scc-to-user anyuid -z gitlab-ce-user
oc adm policy add-scc-to-user privileged -z gitlab-runner-user
oc new-project gitlab
oc adm policy add-scc-to-user anyuid -z gitlab-ce-user -n gitlab
oc adm policy add-scc-to-user privileged -z gitlab-runner-user -n gitlab
```

oc project gitlab
# Setup gitlab template (optional)
```sh
# gitlab openshift template
oc apply -f https://gitlab.com/gitlab-org/omnibus-gitlab/raw/master/docker/openshift-template.json
```

# Setup gitlab runner
```
# no docker access
oc apply -f https://gitlab.com/gitlab-org/omnibus-gitlab/raw/f04b5c4443b3a98011577cdd7c9de766a287531e/docker/openshift/runner-template.yml
# Dind option
# Docker socket option
https://raw.githubusercontent.com/debianmaster/openshift-examples/master/gitlab-ci-with-openshift/gitlab-runner.yaml
```

0 comments on commit fd1b929

Please sign in to comment.