[bitnami/jenkins] Release 2.426.2-debian-11-r4 (#55015)

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
Bitnami Bot 2024-01-19 23:11:32 +01:00 committed by GitHub
parent 12f54db5cf
commit e562ba191f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 62 additions and 40 deletions

View File

@ -8,10 +8,10 @@ ARG TARGETARCH
LABEL com.vmware.cp.artifact.flavor="sha256:1e1b4657a77f0d47e9220f0c37b9bf7802581b93214fff7d1bd2364c8bf22e8e" \
org.opencontainers.image.base.name="docker.io/bitnami/minideb:bullseye" \
org.opencontainers.image.created="2023-12-24T07:45:19Z" \
org.opencontainers.image.created="2024-01-19T21:06:36Z" \
org.opencontainers.image.description="Application packaged by VMware, Inc" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.ref.name="2.426.2-debian-11-r3" \
org.opencontainers.image.ref.name="2.426.2-debian-11-r4" \
org.opencontainers.image.title="jenkins" \
org.opencontainers.image.vendor="VMware, Inc." \
org.opencontainers.image.version="2.426.2"
@ -27,8 +27,8 @@ SHELL ["/bin/bash", "-o", "errexit", "-o", "nounset", "-o", "pipefail", "-c"]
RUN install_packages ca-certificates curl fontconfig git jq libfontconfig1 openssh-client procps unzip zlib1g
RUN mkdir -p /tmp/bitnami/pkg/cache/ ; cd /tmp/bitnami/pkg/cache/ ; \
COMPONENTS=( \
"render-template-1.0.6-4-linux-${OS_ARCH}-debian-11" \
"java-17.0.9-11-6-linux-${OS_ARCH}-debian-11" \
"render-template-1.0.6-5-linux-${OS_ARCH}-debian-11" \
"java-17.0.10-13-0-linux-${OS_ARCH}-debian-11" \
"jenkins-2.426.2-1-linux-${OS_ARCH}-debian-11" \
) ; \
for COMPONENT in "${COMPONENTS[@]}"; do \
@ -43,6 +43,7 @@ RUN mkdir -p /tmp/bitnami/pkg/cache/ ; cd /tmp/bitnami/pkg/cache/ ; \
RUN apt-get update && apt-get upgrade -y && \
apt-get clean && rm -rf /var/lib/apt/lists /var/cache/apt/archives
RUN chmod g+rwX /opt/bitnami
RUN find / -perm /6000 -type f -exec chmod a-s {} \; || true
COPY rootfs /
RUN /opt/bitnami/scripts/java/postunpack.sh

View File

@ -3,7 +3,7 @@
"arch": "amd64",
"distro": "debian-11",
"type": "NAMI",
"version": "17.0.9-11-6"
"version": "17.0.10-13-0"
},
"jenkins": {
"arch": "amd64",
@ -15,6 +15,6 @@
"arch": "amd64",
"distro": "debian-11",
"type": "NAMI",
"version": "1.0.6-4"
"version": "1.0.6-5"
}
}

View File

@ -10,7 +10,7 @@ fi
script=$1
exit_code="${2:-96}"
fail_if_not_present="${3:-y}"
fail_if_not_present="${3:-n}"
if test -f "$script"; then
sh $script

View File

@ -10,8 +10,7 @@ Trademarks: This software listing is packaged by Bitnami. The respective tradema
## TL;DR
```console
curl -sSL https://raw.githubusercontent.com/bitnami/containers/main/bitnami/jenkins/docker-compose.yml > docker-compose.yml
docker-compose up -d
docker run --name jenkins bitnami/jenkins:latest
```
You can find the default credentials and available configuration options in the [Environment Variables](#environment-variables) section.
@ -69,19 +68,8 @@ docker build -t bitnami/APP:latest .
## How to use this image
### Using Docker Compose
The main folder of this repository contains a functional [`docker-compose.yml`](https://github.com/bitnami/containers/blob/main/bitnami/jenkins/docker-compose.yml) file. Run the application using it as shown below:
```console
curl -sSL https://raw.githubusercontent.com/bitnami/containers/main/bitnami/jenkins/docker-compose.yml > docker-compose.yml
docker-compose up -d
```
### Using the Docker Command Line
If you want to run the application manually instead of using `docker-compose`, these are the basic steps you need to run:
#### Step 1: Create a network
```console
@ -144,10 +132,63 @@ docker run -d -p 80:8080 --name jenkins \
bitnami/jenkins:latest
```
### Using Docker Compose
```console
curl -sSL https://raw.githubusercontent.com/bitnami/containers/main/bitnami/jenkins/docker-compose.yml > docker-compose.yml
docker-compose up -d
```
Please be aware this file has not undergone internal testing. Consequently, we advise its use exclusively for development or testing purposes. For production-ready deployments, we highly recommend utilizing its associated [Bitnami Helm chart](https://github.com/bitnami/charts/tree/main/bitnami/jenkins).
If you detect any issue in the `docker-compose.yaml` file, feel free to report it or contribute with a fix by following our [Contributing Guidelines](https://github.com/bitnami/containers/blob/main/CONTRIBUTING.md).
## Configuration
### Environment variables
#### Customizable environment variables
| Name | Description | Default Value |
|--------------------------------------|------------------------------------------------------------------------------------------------------------|------------------------------|
| `JENKINS_HOME` | Jenkins home directory. | `${JENKINS_VOLUME_DIR}/home` |
| `JENKINS_PLUGINS_LATEST` | Set to false to install the minimum required version. | `true` |
| `JENKINS_PLUGINS_LATEST_SPECIFIED` | Set to true to install the latest dependencies of any plugin that is requested to have the latest version. | `false` |
| `JENKINS_SKIP_IMAGE_PLUGINS` | Set to true to skip the installation of image built-in plugins. | `false` |
| `JENKINS_OVERRIDE_PLUGINS` | Set to true to force overriding existing plugins from the persisted volume. | `false` |
| `JENKINS_EXTERNAL_HTTP_PORT_NUMBER` | Port to access Jenkins from outside of the instance using HTTP. | `80` |
| `JENKINS_EXTERNAL_HTTPS_PORT_NUMBER` | Port to access Jenkins from outside of the instance using HTTPS. | `443` |
| `JENKINS_FORCE_HTTPS` | Enable serving Jenkins through HTTPS instead of HTTP. | `no` |
| `JENKINS_SKIP_BOOTSTRAP` | Whether to perform initial bootstrapping for the application. | `no` |
| `JENKINS_ENABLE_SWARM` | Enable the Jenkins Swarm configuration. | `no` |
| `JENKINS_CERTS_DIR` | Password of keystore. | `${JENKINS_HOME}` |
| `JENKINS_KEYSTORE_PASSWORD` | Password of keystore. | `bitnami` |
| `JENKINS_USERNAME` | Jenkins admin user name. | `user` |
| `JENKINS_PASSWORD` | Jenkins admin user password. | `bitnami` |
| `JENKINS_EMAIL` | Jenkins admin user e-mail address. | `user@example.com` |
| `JENKINS_SWARM_USERNAME` | Jenkins user for Swarm access name . | `swarm` |
| `JAVA_HOME` | Java Home directory. | `${BITNAMI_ROOT_DIR}/java` |
#### Read-only environment variables
| Name | Description | Value |
|----------------------------------------|--------------------------------------------------------------------------------------------|---------------------------------------------------------|
| `JENKINS_BASE_DIR` | Jenkins installation directory. | `${BITNAMI_ROOT_DIR}/jenkins` |
| `JENKINS_LOGS_DIR` | Jenkins directory for log files. | `${JENKINS_BASE_DIR}/logs` |
| `JENKINS_LOG_FILE` | Path to the Jenkins log file. | `${JENKINS_LOGS_DIR}/jenkins.log` |
| `JENKINS_TMP_DIR` | Jenkins directory for runtime temporary files. | `${JENKINS_BASE_DIR}/tmp` |
| `JENKINS_PID_FILE` | Path to the Jenkins PID file. | `${JENKINS_TMP_DIR}/jenkins.pid` |
| `JENKINS_TEMPLATES_DIR` | Path to the directory containg templates to generate groovy scripts. | `${BITNAMI_ROOT_DIR}/scripts/jenkins/bitnami-templates` |
| `JENKINS_VOLUME_DIR` | Persistence base directory. | `${BITNAMI_VOLUME_DIR}/jenkins` |
| `JENKINS_MOUNTED_CONTENT_DIR` | Directory to mount custom Jenkins content (such as Groovy scripts or configuration files). | `/usr/share/jenkins/ref` |
| `JENKINS_DAEMON_USER` | Jenkins system user. | `jenkins` |
| `JENKINS_DAEMON_GROUP` | Jenkins system group. | `jenkins` |
| `JENKINS_DEFAULT_HTTP_LISTEN_ADDRESS` | Default Jenkins HTTP listen address to enable at build time. | `0.0.0.0` |
| `JENKINS_DEFAULT_HTTPS_LISTEN_ADDRESS` | Default Jenkins HTTPS listen address to enable at build time. | `0.0.0.0` |
| `JENKINS_DEFAULT_HTTP_PORT_NUMBER` | Default Jenkins HTTP port number to enable at build time. | `8080` |
| `JENKINS_DEFAULT_HTTPS_PORT_NUMBER` | Default Jenkins HTTPS port number to enable at build time. | `8443` |
| `JENKINS_DEFAULT_JNLP_PORT_NUMBER` | Default Jenkins JNLP port number to enable at build time. | `50000` |
When you start the Jenkins image, you can adjust the configuration of the instance by passing one or more environment variables either on the docker-compose file or on the `docker run` command line. If you want to add a new environment variable:
* For docker-compose add the variable name and value under the application section in the [`docker-compose.yml`](https://github.com/bitnami/containers/blob/main/bitnami/jenkins/docker-compose.yml) file present in this repository:
@ -170,26 +211,6 @@ When you start the Jenkins image, you can adjust the configuration of the instan
bitnami/jenkins:latest
```
Available environment variables:
#### User and Site configuration
* `JENKINS_USERNAME`: Jenkins admin username. Default: **user**
* `JENKINS_PASSWORD`: Jenkins admin password. Default: **bitnami**
* `JENKINS_EMAIL`: Jenkins admin email. Default: **user@example.com**
* `JENKINS_HOME`: Jenkins home directory. Default: **/bitnami/jenkins/home**
* `JENKINS_HTTP_PORT_NUMBER`: Port used by Jenkins for HTTP. Default: **8080**
* `JENKINS_HTTPS_PORT_NUMBER`: Port used by Jenkins for HTTPS. Default: **8443**
* `JENKINS_EXTERNAL_HTTP_PORT_NUMBER`: Port to used by Jenkins to generate URLs and links when accessing using HTTP. Default: **80**
* `JENKINS_EXTERNAL_HTTPS_PORT_NUMBER`: Port to used by Jenkins to generate URLs and links when accessing using HTTPS. Default: **443**
* `JENKINS_JNLP_PORT_NUMBER`: Port used by Jenkins for JNLP. Default: **50000**
* `JENKINS_FORCE_HTTPS`: Enable serving Jenkins only through HTTPS. Default: **no**
* `JENKINS_SKIP_BOOTSTRAP`: Skip performing the initial bootstrapping. Default: **no**
#### JAVA configuration
* `JAVA_OPTS`: Customize JVM parameters. No defaults.
## Logging
The Bitnami Jenkins Docker image sends the container logs to `stdout`. To view the logs: