Customized jenkins/jenkins image used by Ancora DevOps
280
This is a customized jenkins/jenkins image with select plugins preinstalled and parameterized configuration.
This image provides the following features:
This image can be launched as follows:
docker run --name <your-container-name> -d -p 8081:8081 -e LDAP_ENABLED=false ancorasoftware/nexus:VERSION
This image stores all data, including plugins and configuration, in the /var/jenkins_home directory.
That should be made an explicit volume so that it can be managed and attached to another container for backup and upgrades:
docker run --name <your-container-name> -d -v $(pwd)/jenkins-data:/var/jenkins_home -p 8080:8080 -p 50000:50000 ancorasoftware/jenkins:VERSION
All configuration is specified through environment variables, unless otherwise noted. The exception to this policy is credentials/secrets which are always specified as volume mounts in accordance with best practices.
This image supports the following environment variables:
| Variable | Default value | Description |
|---|---|---|
| ADMIN_EMAIL | none | Admin email address |
| JENKINS_OPTS | --prefix=/ -Djenkins.install.runSetupWizard=false | Jenkins startup options |
| KUBERNETES_CLOUD_NAME | kubernetes | Enable Kubernetes Plugin autoconfiguration |
| KUBERNETES_ENABLED | true | Enable Kubernetes Plugin autoconfiguration |
| KUBERNETES_JENKINS_URL | http://jenkins/ | Jenkins URL to be used by agents launched by this cloud. Must end in a trailing slash. |
| LDAP_DISABLE_MAIL_ADDRESS_RESOLVER | false | Disable the email address resolver |
| LDAP_DISPLAY_NAME_ATTRIBUTE_NAME | cn | LDAP object field used as display name |
| LDAP_ENABLED | true | Enable LDAP autoconfiguration |
| LDAP_GROUP_MEMBERSHIP_FILTER | none | Filter to use when querying user membership in a group |
| LDAP_GROUP_NAME_ADMIN | administrators | LDAP admin group |
| LDAP_GROUP_SEARCH_FILTER | none | Filter to use when querying for groups |
| LDAP_INHIBIT_INFER_ROOTDN | false | Indicates if the LDAP root DN should be infered |
| LDAP_ROOTDN | none | LDAP root DN |
| LDAP_SERVER | ldap:389 | LDAP host and port |
| PLUGINS_FORCE_UPGRADE | false | Force upgrades of plugins that have been manually upgraded |
| RBAC_ENABLED | true | Enable Role-Based Access Control |
| ROOT_URL | none | Base URL to jenkins instance |
| SECRETS_DIR | /run/secrets | Directory path to volume secrets |
Please view license information for the software contained on this image.
This image was heavily inspired by the Accenture/adop-jenkins image.
Content type
Image
Digest
Size
492.3 MB
Last updated
almost 6 years ago
docker pull ancorasoftware/jenkins