mirror of
https://github.com/bitnami/containers.git
synced 2026-03-01 06:57:49 +08:00
9.4.0-debian-10-r0 release
This commit is contained in:
committed by
Bitnami Containers
parent
78531dbef4
commit
964793da95
@@ -12,8 +12,8 @@ COPY prebuildfs /
|
||||
# Install required system packages and dependencies
|
||||
RUN install_packages acl ca-certificates curl gzip libbsd0 libc6 libedit2 libffi6 libgcc1 libgmp10 libgnutls30 libhogweed4 libicu63 libidn2-0 libldap-2.4-2 liblzma5 libnettle6 libp11-kit0 libsasl2-2 libssl1.1 libstdc++6 libtasn1-6 libtinfo6 libunistring2 libuuid1 libxml2 libxslt1.1 procps tar zlib1g
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "postgresql-client" "13.6.0-5" --checksum ef8f465e059e386aa96e44ba6787ed68ba4bd80c8e73681672b760c8d3114bff
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "java" "11.0.14-7" --checksum 900545c4f346a0ece8abf2caf64fd9d4ab7514967d4614d716bf7362b24f828b
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "sonarqube" "9.3.0-4" --checksum 1bbd5cf866998b75b29127823cf3ec4406ba6edc2813e143680abd674e0a6286
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "java" "11.0.15-0" --checksum 255bc547614ce8052f416a74c58cfb916f724876315f15b816e0eb98b2bded35
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "sonarqube" "9.4.0-0" --checksum da3257f3f73194de33796100c2d2fa33b94a6072ca2442750c38cb729c45db64
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-7" --checksum d6280b6f647a62bf6edc74dc8e526bfff63ddd8067dcb8540843f47203d9ccf1
|
||||
RUN apt-get update && apt-get upgrade -y && \
|
||||
rm -r /var/lib/apt/lists /var/cache/apt/archives
|
||||
@@ -22,7 +22,7 @@ RUN chmod g+rwX /opt/bitnami
|
||||
COPY rootfs /
|
||||
RUN /opt/bitnami/scripts/java/postunpack.sh
|
||||
RUN /opt/bitnami/scripts/sonarqube/postunpack.sh
|
||||
ENV APP_VERSION="9.3.0" \
|
||||
ENV APP_VERSION="9.4.0" \
|
||||
BITNAMI_APP_NAME="sonarqube" \
|
||||
JAVA_HOME="/opt/bitnami/java" \
|
||||
PATH="/opt/bitnami/postgresql/bin:/opt/bitnami/java/bin:/opt/bitnami/common/bin:$PATH"
|
||||
|
||||
@@ -8,10 +8,10 @@
|
||||
},
|
||||
"java": {
|
||||
"arch": "amd64",
|
||||
"digest": "900545c4f346a0ece8abf2caf64fd9d4ab7514967d4614d716bf7362b24f828b",
|
||||
"digest": "255bc547614ce8052f416a74c58cfb916f724876315f15b816e0eb98b2bded35",
|
||||
"distro": "debian-10",
|
||||
"type": "NAMI",
|
||||
"version": "11.0.14-7"
|
||||
"version": "11.0.15-0"
|
||||
},
|
||||
"postgresql-client": {
|
||||
"arch": "amd64",
|
||||
@@ -22,9 +22,9 @@
|
||||
},
|
||||
"sonarqube": {
|
||||
"arch": "amd64",
|
||||
"digest": "1bbd5cf866998b75b29127823cf3ec4406ba6edc2813e143680abd674e0a6286",
|
||||
"digest": "da3257f3f73194de33796100c2d2fa33b94a6072ca2442750c38cb729c45db64",
|
||||
"distro": "debian-10",
|
||||
"type": "NAMI",
|
||||
"version": "9.3.0-4"
|
||||
"version": "9.4.0-0"
|
||||
}
|
||||
}
|
||||
@@ -154,15 +154,23 @@ sonarqube_initialize() {
|
||||
|
||||
if ! is_boolean_yes "$SONARQUBE_SKIP_BOOTSTRAP"; then
|
||||
# Unfortunately SonarQube does not provide a CLI to perform actions like enabling authentication or to reset credentials
|
||||
|
||||
# Pasword hashing algorithm defined in https://github.com/SonarSource/sonarqube/blob/master/server/sonar-webserver-auth/src/main/java/org/sonar/server/authentication/CredentialsLocalAuthentication.java#L191
|
||||
# Note: As of version 8.6, admin user account is forced to reset the password, we disable this behavior with 'reset_password=f'
|
||||
info "Configuring user credentials"
|
||||
local salt encrypted_password
|
||||
salt="$(generate_random_string -t alphanumeric -c 40)"
|
||||
encrypted_password="$(generate_sha_hash "--${salt}--${SONARQUBE_PASSWORD}--")"
|
||||
local sonarqube_default_username="admin"
|
||||
local sonarqube_default_password="admin"
|
||||
local sonarqube_api_url="http://127.0.0.1:${SONARQUBE_PORT_NUMBER}/api"
|
||||
local -a curl_opts=(
|
||||
"--silent"
|
||||
"--request" "POST"
|
||||
"--user" "${sonarqube_default_username}:${sonarqube_default_password}"
|
||||
"--data-urlencode" "login=${sonarqube_default_username}"
|
||||
"--data-urlencode" "previousPassword=${sonarqube_default_password}"
|
||||
"--data-urlencode" "password=${SONARQUBE_PASSWORD}"
|
||||
)
|
||||
debug_execute curl "${curl_opts[@]}" "${sonarqube_api_url}/users/change_password"
|
||||
|
||||
# Update the username and email as well
|
||||
postgresql_remote_execute "${postgresql_execute_args[@]}" <<EOF
|
||||
UPDATE users SET login = '${SONARQUBE_USERNAME}', email = '${SONARQUBE_EMAIL}', salt = '${salt}', crypted_password = '${encrypted_password}', hash_method = 'SHA1', reset_password = 'f' WHERE login = 'admin';
|
||||
UPDATE users SET login = '${SONARQUBE_USERNAME}', email = '${SONARQUBE_EMAIL}' WHERE login = '${sonarqube_default_username}';
|
||||
EOF
|
||||
|
||||
# SMTP configuration
|
||||
@@ -228,7 +236,8 @@ sonarqube_start_bg() {
|
||||
debug_execute "${SONARQUBE_BIN_DIR}/sonar.sh" "start"
|
||||
fi
|
||||
info "Waiting for SonarQube to start..."
|
||||
wait_for_log_entry "SonarQube is up" "$SONARQUBE_LOG_FILE" "$SONARQUBE_START_TIMEOUT" "1"
|
||||
# Use a RegEx to support both SonarQube 8 & 9 formats
|
||||
wait_for_log_entry "SonarQube is (up|operational)" "$SONARQUBE_LOG_FILE" "$SONARQUBE_START_TIMEOUT" "1"
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ Non-root container images add an extra layer of security and are generally recom
|
||||
Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/tutorials/understand-rolling-tags-containers/).
|
||||
|
||||
|
||||
- [`9`, `9-debian-10`, `9.3.0`, `9.3.0-debian-10-r65`, `latest` (9/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-sonarqube/blob/9.3.0-debian-10-r65/9/debian-10/Dockerfile)
|
||||
- [`9`, `9-debian-10`, `9.4.0`, `9.4.0-debian-10-r0`, `latest` (9/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-sonarqube/blob/9.4.0-debian-10-r0/9/debian-10/Dockerfile)
|
||||
- [`8`, `8-debian-10`, `8.9.8`, `8.9.8-debian-10-r24` (8/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-sonarqube/blob/8.9.8-debian-10-r24/8/debian-10/Dockerfile)
|
||||
|
||||
Subscribe to project updates by watching the [bitnami/sonarqube GitHub repo](https://github.com/bitnami/bitnami-docker-sonarqube).
|
||||
|
||||
Reference in New Issue
Block a user