A Dockerized Jenkins CI-CD system for Concordia
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Apostolos Fanakis ba3070f135 Add proper README.md, Add LICENSE.md 5 years ago
env Delete unnecessary tools, plugins and other useless code 5 years ago
jenkins Fix Dockerfile 5 years ago
utility-scripts Add groovy script for git credentials configuration 5 years ago
volumes Work on sonarqube, auto configuration, Add installation script, Add utility to update plugins 5 years ago
.dockerignore Add .dockerignore 5 years ago
.gitignore Update plugins.txt 5 years ago
LICENSE.md Add proper README.md, Add LICENSE.md 5 years ago
Makefile Fix docker-compose.yml, Add more Makefile targets 5 years ago
README.md Add proper README.md, Add LICENSE.md 5 years ago
SETUP.md Add setup guide, Add docker installation inside jenkins image and safeguard for docker version, Remove java binaries 5 years ago
docker-compose.yml Fixes for Dockerfile and docker-compose.yml 5 years ago
install.sh Change docker version used 5 years ago

README.md

Janus

A Dockerized Jenkins CI-CD system for Apella

Janus is a Docker image that contains an instance of Jenkins with all the necessary configuration built into it for handling the CI-CD of Apella.

Prerequisites

Only needs a working installation of Docker.

Installation

The credentials of the default admin user created are passed to Jenkins using docker secrets. The files containing the username and password to be used can be found at the paths ./jenkins/secrets/user and ./jenkins/secrets/pass respectively. Edit the files to change the default username and password.

Then run:

make build
make run

During the Docker image build, a key-pair is created for usage with Gitlab. Get the public ssh key using:

./utility-scripts/printJenkinsGitlabSSHPublicKey.sh

Then, on Gitlab, add the public key to the deploy keys of the project.

Jenkins also needs an access token from Gitlab to update build statuses. Create an access token and add it to Jenkins under Global Credentials.

Lastly a Webhook must be added to Gitlab, pointing to the Jenkins project. On Gitlab, navigate to the Webhooks menu in the Settings of the project and add a new webhook pointing to https://jenkins.apella.tk/project/staging-apella-multibranch-pipeline.

Contact

Apostolof – apotwohd@gmail.com

Distributed under the MIT license. See LICENSE for more information.