mirror of
https://github.com/bitnami/containers.git
synced 2026-04-02 23:38:16 +08:00
[bitnami/ejbca] Release 7.9.0-2-debian-11-r1 (#635)
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
@@ -10,11 +10,11 @@ COPY prebuildfs /
|
||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
# Install required system packages and dependencies
|
||||
RUN install_packages acl ca-certificates curl gzip libaio1 libaudit1 libc6 libcap-ng0 libgcc-s1 libicu67 liblzma5 libncurses6 libpam0g libssl1.1 libstdc++6 libtinfo6 libxml2 procps tar zlib1g
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "java" "1.8.333-150" --checksum 02a91d298bbe3bb5d240f635802a50b2970b19eba960c1804b7275f88a944bb3
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "wildfly" "14.0.1-152" --checksum 8746d7945ee9a26428ba1b292774a79703900f64b613ec58f6c672f3e05a6c01
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "mysql-client" "10.6.8-150" --checksum b47e1015fc1c9ce456f134ffd5b6ac6960c3f369c96fcd37319e9289b29a1047
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-150" --checksum da4a2f759ccc57c100d795b71ab297f48b31c4dd7578d773d963bbd49c42bd7b
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "ejbca" "7.4.3-2-0" --checksum 80eb0162c1f140945314cbed75d7581efd9ba78468932691f7492f5d6849d96f
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "java" "11.0.15-1-1" --checksum 6d176a8b3c894c608106fee2cf10aaf3771015defb0b7e08fe60ce6c9c1cd342
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "wildfly" "26.1.1-154" --checksum cb5e0d377d4fd64faa2d5321fa786ec61fde994a176048dc957cca7caee1c7ad
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "mysql-client" "10.6.8-151" --checksum c85e4be9bcee70c86c7bc7e13742e2d97810ad8f7d6154f8b66811b6cc4d0948
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-152" --checksum 0c751c7e2ec0bc900a19dbec0306d6294fe744ddfb0fa64197ba1a36040092f0
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "ejbca" "7.9.0-2-1" --checksum 848a36d7815dcd5ab0f2963b6f0c0af5bc40d140ac9e05b948f25bcbfadcbe7a
|
||||
RUN apt-get update && apt-get upgrade -y && \
|
||||
rm -r /var/lib/apt/lists /var/cache/apt/archives
|
||||
RUN chmod g+rwX /opt/bitnami
|
||||
@@ -22,7 +22,7 @@ RUN chmod g+rwX /opt/bitnami
|
||||
COPY rootfs /
|
||||
RUN /opt/bitnami/scripts/ejbca/postunpack.sh
|
||||
RUN /opt/bitnami/scripts/java/postunpack.sh
|
||||
ENV APP_VERSION="7.4.3-2" \
|
||||
ENV APP_VERSION="7.9.0-2" \
|
||||
BITNAMI_APP_NAME="ejbca" \
|
||||
JAVA_HOME="/opt/bitnami/java" \
|
||||
PATH="/opt/bitnami/java/bin:/opt/bitnami/wildfly/bin:/opt/bitnami/mysql/bin:/opt/bitnami/common/bin:/opt/bitnami/ejbca/bin:$PATH"
|
||||
|
||||
@@ -1,37 +1,37 @@
|
||||
{
|
||||
"ejbca": {
|
||||
"arch": "amd64",
|
||||
"digest": "80eb0162c1f140945314cbed75d7581efd9ba78468932691f7492f5d6849d96f",
|
||||
"digest": "848a36d7815dcd5ab0f2963b6f0c0af5bc40d140ac9e05b948f25bcbfadcbe7a",
|
||||
"distro": "debian-11",
|
||||
"type": "NAMI",
|
||||
"version": "7.4.3-2-0"
|
||||
"version": "7.9.0-2-1"
|
||||
},
|
||||
"gosu": {
|
||||
"arch": "amd64",
|
||||
"digest": "da4a2f759ccc57c100d795b71ab297f48b31c4dd7578d773d963bbd49c42bd7b",
|
||||
"digest": "0c751c7e2ec0bc900a19dbec0306d6294fe744ddfb0fa64197ba1a36040092f0",
|
||||
"distro": "debian-11",
|
||||
"type": "NAMI",
|
||||
"version": "1.14.0-150"
|
||||
"version": "1.14.0-152"
|
||||
},
|
||||
"java": {
|
||||
"arch": "amd64",
|
||||
"digest": "02a91d298bbe3bb5d240f635802a50b2970b19eba960c1804b7275f88a944bb3",
|
||||
"digest": "6d176a8b3c894c608106fee2cf10aaf3771015defb0b7e08fe60ce6c9c1cd342",
|
||||
"distro": "debian-11",
|
||||
"type": "NAMI",
|
||||
"version": "1.8.333-150"
|
||||
"version": "11.0.15-1-1"
|
||||
},
|
||||
"mysql-client": {
|
||||
"arch": "amd64",
|
||||
"digest": "b47e1015fc1c9ce456f134ffd5b6ac6960c3f369c96fcd37319e9289b29a1047",
|
||||
"digest": "c85e4be9bcee70c86c7bc7e13742e2d97810ad8f7d6154f8b66811b6cc4d0948",
|
||||
"distro": "debian-11",
|
||||
"type": "NAMI",
|
||||
"version": "10.6.8-150"
|
||||
"version": "10.6.8-151"
|
||||
},
|
||||
"wildfly": {
|
||||
"arch": "amd64",
|
||||
"digest": "8746d7945ee9a26428ba1b292774a79703900f64b613ec58f6c672f3e05a6c01",
|
||||
"digest": "cb5e0d377d4fd64faa2d5321fa786ec61fde994a176048dc957cca7caee1c7ad",
|
||||
"distro": "debian-11",
|
||||
"type": "NAMI",
|
||||
"version": "14.0.1-152"
|
||||
"version": "26.1.1-154"
|
||||
}
|
||||
}
|
||||
@@ -40,7 +40,7 @@ print_welcome_page() {
|
||||
# None
|
||||
#########################
|
||||
print_image_welcome_page() {
|
||||
local github_url="https://github.com/bitnami/bitnami-docker-${BITNAMI_APP_NAME}"
|
||||
local github_url="https://github.com/bitnami/containers"
|
||||
|
||||
log ""
|
||||
log "${BOLD}Welcome to the Bitnami ${BITNAMI_APP_NAME} container${RESET}"
|
||||
|
||||
@@ -113,7 +113,7 @@ export EJBCA_DATABASE_NAME="${EJBCA_DATABASE_NAME:-}"
|
||||
export EJBCA_DATABASE_USERNAME="${EJBCA_DATABASE_USERNAME:-}"
|
||||
export EJBCA_DATABASE_PASSWORD="${EJBCA_DATABASE_PASSWORD:-}"
|
||||
export EJBCA_CA_NAME="${EJBCA_CA_NAME:-ManagementCA}"
|
||||
export JAVA_OPTS="${JAVA_OPTS:--Xms2048m -Xmx2048m -XX:MetaspaceSize=192M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Dhibernate.dialect=org.hibernate.dialect.MySQL5Dialect -Dhibernate.dialect.storage_engine=innodb}"
|
||||
export JAVA_OPTS="${JAVA_OPTS:--Xms2048m -Xmx2048m -Djava.net.preferIPv4Stack=true -Dhibernate.dialect=org.hibernate.dialect.MySQL5Dialect -Dhibernate.dialect.storage_engine=innodb}"
|
||||
export EJBCA_SMTP_HOST="${EJBCA_SMTP_HOST:-localhost}"
|
||||
export EJBCA_SMTP_PORT="${EJBCA_SMTP_PORT:-25}"
|
||||
export EJBCA_SMTP_FROM_ADDRESS="${EJBCA_SMTP_FROM_ADDRESS:-user@example.com}"
|
||||
|
||||
@@ -111,6 +111,7 @@ wildfly_not_ready() {
|
||||
# None
|
||||
#########################
|
||||
ejbca_configure_wildfly() {
|
||||
# The configuration of Wildfly in EJBCA https://doc.primekey.com/ejbca790/ejbca-installation/application-servers/wildfly-24
|
||||
info "Creating data source"
|
||||
local -r pluginJar="$(basename "$EJBCA_WILDFLY_DEPLOY_DIR"/mariadb*)"
|
||||
ejbca_wildfly_command "data-source add --name=ejbcads --driver-name=\"${pluginJar}\" --connection-url=\"jdbc:mysql://${EJBCA_DATABASE_HOST}:${EJBCA_DATABASE_PORT}/${EJBCA_DATABASE_NAME}\" --jndi-name=\"java:/EjbcaDS\" --use-ccm=true --driver-class=\"org.mariadb.jdbc.Driver\" --user-name=\"${EJBCA_DATABASE_USERNAME}\" --password=\"${EJBCA_DATABASE_PASSWORD}\" --validate-on-match=true --background-validation=false --prepared-statements-cache-size=50 --share-prepared-statements=true --min-pool-size=5 --max-pool-size=150 --pool-prefill=true --transaction-isolation=TRANSACTION_READ_COMMITTED --check-valid-connection-sql=\"select 1;\""
|
||||
@@ -118,20 +119,18 @@ ejbca_configure_wildfly() {
|
||||
wait_for_wildfly
|
||||
|
||||
info "Configure WildFly Remoting"
|
||||
ejbca_wildfly_command "/subsystem=remoting/http-connector=http-remoting-connector:write-attribute(name=connector-ref,value=remoting)"
|
||||
ejbca_wildfly_command "/socket-binding-group=standard-sockets/socket-binding=remoting:add(port=4447,interface=management)"
|
||||
ejbca_wildfly_command "/subsystem=undertow/server=default-server/http-listener=remoting:add(socket-binding=remoting,enable-http2=true)"
|
||||
ejbca_wildfly_command "/subsystem=infinispan/cache-container=ejb:remove()"
|
||||
ejbca_wildfly_command "/subsystem=infinispan/cache-container=server:remove()"
|
||||
ejbca_wildfly_command "/subsystem=infinispan/cache-container=web:remove()"
|
||||
ejbca_wildfly_command "/subsystem=ejb3/cache=distributable:remove()"
|
||||
ejbca_wildfly_command "/subsystem=ejb3/passivation-store=infinispan:remove()"
|
||||
ejbca_wildfly_command ":reload"
|
||||
ejbca_wildfly_command '/subsystem=remoting/http-connector=http-remoting-connector:write-attribute(name=connector-ref,value=remoting)'
|
||||
ejbca_wildfly_command '/socket-binding-group=standard-sockets/socket-binding=remoting:add(port=4447,interface=management)'
|
||||
ejbca_wildfly_command '/subsystem=undertow/server=default-server/http-listener=remoting:add(socket-binding=remoting,enable-http2=true)'
|
||||
ejbca_wildfly_command ':reload'
|
||||
wait_for_wildfly
|
||||
|
||||
info "Configure logging"
|
||||
ejbca_wildfly_command "/subsystem=logging/logger=org.ejbca:add(level=INFO)"
|
||||
ejbca_wildfly_command "/subsystem=logging/logger=org.cesecore:add(level=INFO)"
|
||||
ejbca_wildfly_command '/subsystem=logging/logger=org.cesecore.audit.impl.log4j.Log4jDevice:add(level=INFO)'
|
||||
ejbca_wildfly_command '/subsystem=logging/logger=org.ejbca:add(level=INFO)'
|
||||
ejbca_wildfly_command '/subsystem=logging/logger=org.cesecore:add(level=INFO)'
|
||||
ejbca_wildfly_command '/subsystem=undertow/server=default-server/host=default-host/setting=access-log:add(pattern="%h %t \"%r\" %s \"%{i,User-Agent}\"", relative-to=jboss.server.log.dir, directory=access-logs)'
|
||||
ejbca_wildfly_command '/subsystem=logging/logger=io.undertow.accesslog:add(level=INFO)'
|
||||
|
||||
info "Remove the ExampleDS DataSource"
|
||||
ejbca_wildfly_command '/subsystem=ee/service=default-bindings:remove()'
|
||||
|
||||
@@ -41,7 +41,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/containers/how-to/understand-rolling-tags-containers/).
|
||||
|
||||
|
||||
* [`7`, `7-debian-11`, `7.4.3-2`, `7.4.3-2-debian-11-r11`, `latest` (7/debian-11/Dockerfile)](https://github.com/bitnami/bitnami-docker-ejbca/blob/7.4.3-2-debian-11-r11/7/debian-11/Dockerfile)
|
||||
* [`7`, `7-debian-11`, `7.9.0-2`, `7.9.0-2-debian-11-r1`, `latest` (7/debian-11/Dockerfile)](https://github.com/bitnami/bitnami-docker-ejbca/blob/7.9.0-2-debian-11-r1/7/debian-11/Dockerfile)
|
||||
|
||||
Subscribe to project updates by watching the [bitnami/ejbca GitHub repo](https://github.com/bitnami/bitnami-docker-ejbca).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user