Skip to content

hrabosch/Jenkins_Cookbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Jenkins Cookbook

Local environement for CI/CD

In Env directory is located docker-compose file with following services:

Quick start of local self-hosted Git and Jenkins

Run docker-compose.ylm file within env folder. Pay attention to configured data volumes for Jenkins and Gitea to persist a data after stopping running containers.

Jenkins is configured to run without installation wizard and with default administrator user.

  • Run Jenkins in docker without installation wizard by adding -Djenkins.install.runSetupWizard=false to JAVA_OPTS
  • Run Jenkins in docker with default administrator username/password by adding --argumentsRealm.roles.user=USERNAME --argumentsRealm.passwd.admin=PASSWORD --argumentsRealm.roles.admin=admin into JENKINS_OPTS

Jenkins will be without any additional plugins. Install plugins based on your needs or enable Setup wizard. In that case, for first login use a password stored in env/jenkins-data/secrets/initialAdminPassword.

Gitea has already predefined app.ini file in env/gitea-data/gitea/conf/. If you need to expose and use different host defined in compose file, do not forget to change that port in this file or later on via web UI of Gitea in Settings.

Gitea fresh installation DOES NOT have a default administrator or user account. After first start, register your desired user which will be administrator by default.

What else?

Finish Readme! As always..

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages