-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8463f49
commit fd1b929
Showing
1 changed file
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |