Skip to content

dsingh07/adop-jenkins

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Supported tags and respective Dockerfile links

What is adop-jenkins?

adop-jenkins is a wrapper for the Jenkins image. It has primarily been built to perform extended configuration. Jenkins is an open source automation tool.

How to use this image

The easiest for to run adop-jenkins image is as follow:

docker run --name <your-container-name> -d -p 8080:8080 accenture/adop-jenkins:VERSION

after the above Jenkins will be available at: http://localhost:8080

Runtime configuration can be provided using environment variables:

  • JENKINS_OPTS, Jenkins startup options.
  • ADOP_LDAP_ENABLED, allow enable/disable LDAP authentication. Default to true (enabled).
  • ADOP_ACL_ENABLED, allow enable/disable Jenkins user access control lists.
  • ADOP_SONAR_ENABLED, allow enable/disable Jenkins-Sonar integrations. Default to true (enabled).
  • ADOP_ANT_ENABLED, allow enable/disable Jenkins-ANT integration. Default to true (enabled).
  • ADOP_MAVEN_ENABLED, allow enable/disable Jenkins-MAVEN integration. Default to true (enabled).
  • ADOP_NODEJS_ENABLED, allow enable/disable Jenkins-NODEJS integration. Default to true (enabled).
  • ADOP_GERRIT_ENABLED, allow enable/disable Jenkins-GERRIT integration. Default to true (enabled).

Additional environment variables that allow fine tune Jenkins runtime configuration are:

  • GERRIT_HOST_NAME, the Gerrit hostname. Default to Gerrit
  • GERRIT_PORT, the port Gerrit APIs are exposed. Default to 8080
  • GERRIT_JENKINS_USERNAME, the username Jenkins will use to connect to Gerrit. Default to Gerrit.
  • GERRIT_JENKINS_PASSWORD, the password Jenkins will use to connect to Gerrit. Default to gerrit.
  • GERRIT_FRONT_END_URL, the URL for Gerrit frontend.
  • INITIAL_ADMIN_USER, the username for the admin user.
  • INITIAL_ADMIN_PASSWORD, the password for the initial admin user.
  • LDAP_SERVER, the LDPA URI, i.e. ldap-host:389
  • LDAP_ROOTDN, the LDAP BASE_DN
  • LDAP_USER_SEARCH_BASE, base organization unit to use to search for users
  • LDAP_USER_SEARCH, LDAP object field to use for the search query
  • LDAP_GROUP_SEARCH_BASE, base organization unit to use to search for groups
  • LDAP_GROUP_SEARCH_FILTER, filter to use querying for groups
  • LDAP_GROUP_MEMBERSHIP_FILTER, filter to use when writing queries to verify if a user is member of a group
  • LDAP_MANAGER_DN, LDAP adim user
  • LDAP_MANAGER_PASSWORD, LDAP admin password
  • LDAP_INHIBIT_INFER_ROOTDN, flag indicating if ROOT_DN should be infered
  • LDAP_DISPLAY_NAME_ATTRIBUTE_NAME, LDAP object field used as a display name
  • LDAP_DISABLE_MAIL_ADDRESS_RESOLVER, flag indicating if the email address resolver should be disabled
  • LDAP_MAIL_ADDRESS_ATTRIBUTE_NAME, LDAP object field used as a email address
  • LDAP_GROUP_NAME_ADMIN, LDAP admin group. Default to administrators.
  • SONAR_SERVER_URL, the sonar server URL
  • SONAR_ACCOUNT_LOGIN, username to use when connecting to sonar
  • SONAR_ACCOUNT_PASSWORD, password to use when connecting to sonar
  • SONAR_DB_URL, sonar database JDBC connection string
  • SONAR_DB_LOGIN, username to use to connect to sonar DB
  • SONAR_DB_PASSWORD, password to use when connecting to sonar DB
  • SONAR_PLUGIN_VERSION, the sonar plugin version
  • SONAR_ADDITIONAL_PROPS, additional properties for sonar plugin. Refer to SonarQube documentation for more informattion
  • SONAR_RUNNER_VERSION, the sonar runner version
  • ANT_VERSION, ANT release version
  • MAVEN_VERSION, Maven release version
  • NODEJS_VERSION, nodejs release version
  • NODEJS_GLOBAL_PACKAGES, nodejs packages to be installed as global
  • NODEJS_PACKAGES_REFRESH_HOURS, nodejs package refresh time in hours.
  • GIT_GLOBAL_CONFIG_NAME, Git global config name
  • GIT_GLOBAL_CONFIG_EMAIL, Git global config email
  • AWS_DEFAULT_REGION, set the AWS default region for the CLI at a global level
  • DOCKER_TLS_VERIFY, Docker CLI variable to declare a TLS-enabled engine
  • DOCKER_HOST, Docker CLI variable to declare the endpoint to target
  • DOCKER_CERT_PATH, Docker CLI variable to declare the path to the certificate
  • DOCKER_NETWORK_NAME, the Docker custom network to launch containers on
  • GROOVY_VERSION, a comma delimited list of Groovy installation profiles to install (e.g. 2.4.8, 2.4.3).
  • LDAP_IS_MODIFIABLE, allows us to interact with LDAP configuration through jenkins, Allowed values true (default) and false. If set to true, LDAP can be modified and jenkins will be able to create necessary users/groups in LDAP. If set to false, LDAP can not be modified and jenkins need be configured to use existing users/groups in LDAP. This variable will be used when ADOP_LDAP_ENABLED is set to true.

Run adop-jenkins with OpenLDAP

The following assumes that MySQL and OpenLDAP are running.

The following command will run adop-jenkins and connect it to OpenLDAP

  docker run \
  --name adop-jenkins \
  -p 8080:8080 \
  -e LDAP_SERVER="ldap:389" \
  -e LDAP_ROOTDN="${LDAP_FULL_DOMAIN}" \
  -e LDAP_USER_SEARCH_BASE="ou=people" \
  -e LDAP_USER_SEARCH="uid={0}" \
  -e LDAP_GROUP_SEARCH_BASE="ou=groups" \
  -e LDAP_GROUP_SEARCH_FILTER="" \
  -e LDAP_GROUP_MEMBERSHIP_FILTER="" \
  -e LDAP_MANAGER_DN="cn=admin,${LDAP_FULL_DOMAIN}" \
  -e LDAP_MANAGER_PASSWORD=${LDAP_PWD} \
  -e LDAP_INHIBIT_INFER_ROOTDN="false" \
  -e LDAP_DISABLE_MAIL_ADDRESS_RESOLVER="false" \
  -e LDAP_DISPLAY_NAME_ATTRIBUTE_NAME="displayName" \
  -e LDAP_MAIL_ADDRESS_ATTRIBUTE_NAME="mail" \
  -d accenture/adop-jenkins:VERSION

License

Please view license information for the software contained on this image.

Supported Docker versions

This image is officially supported on Docker version 1.9.1. Support for older versions (down to 1.6) is provided on a best-effort basis.

User feedback

Documentation

Documentation for this image is available in the Jenkins documentation page.

Issues

If you have any problems with or questions about this image, please contact us through a GitHub issue.

Contribute

You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.

Before you start to code, we recommend discussing your plans through a GitHub issue, especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Groovy 82.9%
  • Shell 13.7%
  • Ruby 3.4%