From 49ae704118ceabb000a81b5002d07c8a8753f963 Mon Sep 17 00:00:00 2001 From: Dominik Schubert Date: Thu, 30 Dec 2021 18:10:58 +0100 Subject: [PATCH] wip --- content/en/ci/jenkins/index.md | 52 +++++ content/en/ci/jenkins/jenkins-logo.svg | 283 +++++++++++++++++++++++++ 2 files changed, 335 insertions(+) create mode 100644 content/en/ci/jenkins/index.md create mode 100644 content/en/ci/jenkins/jenkins-logo.svg diff --git a/content/en/ci/jenkins/index.md b/content/en/ci/jenkins/index.md new file mode 100644 index 0000000000..d202a7ff40 --- /dev/null +++ b/content/en/ci/jenkins/index.md @@ -0,0 +1,52 @@ +--- +title: "Jenkins" +tags: ["continuous-integration", "ci", "continuous-delivery", "testing"] +weight: 14 +description: > + Use LocalStack with [Jenkins](https://www.jenkins.io/) +--- + + +Jenkins logo + + +## Quick Start + +In this quick start we'll start our Jenkins server as a Docker container. +Localstack will be run in a Docker build agent. + +To keep requirements low for this guide, we're going to assume you're running everything on a single debian-based local machine with docker and docker-compose installed. + + +```yaml +version: "3.7" +services: + jenkins: + privileged: true + user: root + image: jenkins/jenkins:2.322-jdk11 + ports: + - 8080:8080 + - 50000:50000 + volumes: + - .jenkins:/var/jenkins_home + - /var/run/docker.sock:/var/run/docker.sock + - /usr/bin/docker:/usr/bin/docker +``` + +We're starting a jenkins server as a Docker container. The Docker socket and client are mounted into the container. +Alternatively you can also point the docker client in Jenkins to the URL of a remote Docker host with an exposed API. + +In your production environment you might also want to install Docker on the runner directly. + +```bash +docker-compose up -d +docker-compose logs -f # check the log output for the initial admin user password +``` + +Head to http://localhost:8080 and initialize Jenkins. +After the initial setup, go to "Manage Jenkins"->"Manage Plugins"->"Available" and install the [Docker plugin](https://plugins.jenkins.io/docker-plugin/). +After the plugin is installed it needs to be configured. +Go to "Manage Jenkins"->"Manage Nodes and Clouds"->"Configure Clouds" and follow the documentation in https://plugins.jenkins.io/docker-plugin/ to set up your docker client and make sure you verify the setup with "Test Connection". + + diff --git a/content/en/ci/jenkins/jenkins-logo.svg b/content/en/ci/jenkins/jenkins-logo.svg new file mode 100644 index 0000000000..4a4538daf6 --- /dev/null +++ b/content/en/ci/jenkins/jenkins-logo.svg @@ -0,0 +1,283 @@ + + + +image/svg+xml \ No newline at end of file