summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMarcel Haupenthal <[email protected]>2019-08-06 18:23:47 +0200
committerKasra Bigdeli <[email protected]>2019-08-06 12:23:47 -0400
commit99bb5590e6903f987cafb60f1008d6c34a6dccf1 (patch)
tree1ab6c490b167d5492e7c411f8e5ede0047869f24
parent2aef56a149fae54ae27d6908a5f727ada255a610 (diff)
downloadcaprover-one-click-apps-99bb5590e6903f987cafb60f1008d6c34a6dccf1.tar.gz
caprover-one-click-apps-99bb5590e6903f987cafb60f1008d6c34a6dccf1.zip
Add gitlab-runner (#65)
* Add gitlab-runner With this One-Click-App, users can easily create their own Gitlab Runner to get unlimited ci/cd pipelines. * explain docker socket mount for gitlab-runner
-rw-r--r--public/v1/apps/gitlab-runner.json30
1 files changed, 30 insertions, 0 deletions
diff --git a/public/v1/apps/gitlab-runner.json b/public/v1/apps/gitlab-runner.json
new file mode 100644
index 0000000..0b0c68f
--- /dev/null
+++ b/public/v1/apps/gitlab-runner.json
@@ -0,0 +1,30 @@
+{
+ "captainVersion": "1",
+ "documentation": "Taken from https://docs.gitlab.com/runner/install/docker.html and https://docs.gitlab.com/runner/register/",
+ "dockerCompose": {
+ "version": "3",
+ "services": {
+ "$$cap_appname": {
+ "image": "gitlab/gitlab-runner:$$cap_gitlab-runner_version",
+ "notExposeAsWebApp": "true",
+ "volumes": [
+ "$$cap_appname-data:/etc/gitlab-runner",
+ "/var/run/docker.sock:/var/run/docker.sock"
+ ],
+ "restart": "always"
+ }
+ }
+ },
+ "instructions": {
+ "start": "GitLab CI/CD is the CI/CD solution integrated into GitLab. With this one-click-app, you receive a self-hosted runner for your pipelines. To enable you to build Docker Images in your pipelines, we mount /var/run/docker.sock into the container of the runner (see https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#use-docker-socket-binding for more info). As a consequence, this container will have full access to all your other containers. If you don't need this functionality, feel free to manually remove the mounted Docker socket from the volumes.",
+ "end": "Head over to https://docs.gitlab.com/runner/register/ to register your newly installed runner. You can run 'docker exec -ti <runner-image-name> /bin/sh' to connect to the newly created container and follow the tutorial."
+ },
+ "variables": [{
+ "id": "$$cap_gitlab-runner_version",
+ "label": "GitLab-Runner Version",
+ "defaultValue": "v11.11.0",
+ "description": "Checkout their docker page for the valid tags https://hub.docker.com/r/gitlab/gitlab-runner/tags",
+ "validRegex": "/^([^\\s^\\/])+$/"
+ }
+ ]
+}