Skip to content

Dj kube runner #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: gitlab
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 11 additions & 19 deletions gitlab-runner/gitlab-runner-docker-configmap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,16 @@ metadata:
name: gitlab-runner-docker
namespace: gitlab
data:
entrypoint: |
#!/bin/bash

# Register the runner
/entrypoint register --non-interactive -u http://gitlab.gitlab/ci -r '49uf3mzs1qdz5vgo' --docker-image 'ruby:2.3' --executor kubernetes


cat /etc/gitlab-runner/config.toml
# Start the runner
/entrypoint run --user=gitlab-runner --working-directory=/home/gitlab-runner
config.toml: |
concurrent = 4
concurrent = 10
check_interval = 1

[[runners]]
name = "gitlab-docker-runner"
url = "http://gitlab.gitlab/ci"
token = ""
executor = "docker"
[runners.docker]
tls_verify = false
image = "python:3.5"
privileged = true
disable_cache = false
volumes = ["/cache"]
[runners.cache]
Type = "s3"
ServerAddress = "http://minio.gitlab/"
AccessKey = ""
SecretKey = ""
BucketName = "runner"
7 changes: 5 additions & 2 deletions gitlab-runner/gitlab-runner-docker-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ spec:
spec:
containers:
- name: gitlab-runner-docker
image: gitlab/gitlab-runner:v1.8.0
image: gitlab/gitlab-runner:alpine-v1.9.2
command: [ "/bin/sh", "-c", "chmod +x /etc/gitlab-runner/entrypoint; /etc/gitlab-runner/entrypoint" ]
env:
- name: KUBERNETES_NAMESPACE
value: gitlab
imagePullPolicy: Always
resources:
limits:
Expand All @@ -34,4 +38,3 @@ spec:
- name: config
configMap:
name: gitlab-runner-docker

3 changes: 2 additions & 1 deletion gitlab/gitlab-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ spec:
spec:
containers:
- name: gitlab
image: gitlab/gitlab-ce:8.15.4-ce.1
image: twk3/gitlab-ce:i2p
imagePullPolicy: Always
env:
- name: GITLAB_OMNIBUS_CONFIG
value: |
external_url "http://gitlab.example.com"
gitlab_rails['initial_shared_runners_registration_token'] = '49uf3mzs1qdz5vgo'
postgresql['enable']=false
gitlab_rails['db_host'] = 'gitlab-postgresql'
gitlab_rails['db_password']='+BP52QIxpT/flVCMpL3KXA=='
Expand Down