mirror of
https://github.com/bitnami/containers.git
synced 2026-03-17 14:57:40 +08:00
2.4.4-debian-9-r10 release
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM bitnami/minideb-extras-base:stretch-r362
|
||||
FROM bitnami/minideb-extras-base:stretch-r363
|
||||
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
||||
|
||||
ENV HOME="/" \
|
||||
@@ -15,7 +15,7 @@ RUN . ./libcomponent.sh && component_unpack "spark" "2.4.4-0" --checksum cc74cae
|
||||
COPY rootfs /
|
||||
RUN /postunpack.sh
|
||||
ENV BITNAMI_APP_NAME="spark" \
|
||||
BITNAMI_IMAGE_VERSION="2.4.4-debian-9-r9" \
|
||||
BITNAMI_IMAGE_VERSION="2.4.4-debian-9-r10" \
|
||||
JAVA_HOME="/opt/bitnami/java" \
|
||||
NSS_WRAPPER_GROUP="/opt/bitnami/spark/tmp/nss_group" \
|
||||
NSS_WRAPPER_PASSWD="/opt/bitnami/spark/tmp/nss_passwd" \
|
||||
|
||||
@@ -68,54 +68,56 @@ EOF
|
||||
# None
|
||||
#########################
|
||||
spark_validate() {
|
||||
local error_code=0
|
||||
|
||||
# Auxiliary functions
|
||||
print_validation_error() {
|
||||
error "$1"
|
||||
error_code=1
|
||||
}
|
||||
|
||||
# Validate spark mode
|
||||
case "$SPARK_MODE" in
|
||||
master|worker)
|
||||
;;
|
||||
*)
|
||||
error "Invalid mode $SPARK_MODE. Supported types are 'master/worker'"
|
||||
exit 1
|
||||
print_validation_error "Invalid mode $SPARK_MODE. Supported types are 'master/worker'"
|
||||
esac
|
||||
|
||||
# Validate worker node inputs
|
||||
if [[ "$SPARK_MODE" == "worker" ]]; then
|
||||
if [[ -z "$SPARK_MASTER_URL" ]]; then
|
||||
error "For worker nodes you need to specify the SPARK_MASTER_URL"
|
||||
exit 1
|
||||
print_validation_error "For worker nodes you need to specify the SPARK_MASTER_URL"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Validate SSL parameters
|
||||
if is_boolean_yes "$SPARK_SSL_ENABLED"; then
|
||||
if [[ -z "$SPARK_SSL_KEY_PASSWORD" ]]; then
|
||||
error "If you enable SSL configuration, you must provide the password to the private key in the key store."
|
||||
exit 1
|
||||
print_validation_error "If you enable SSL configuration, you must provide the password to the private key in the key store."
|
||||
fi
|
||||
if [[ -z "$SPARK_SSL_KEYSTORE_PASSWORD" ]]; then
|
||||
error "If you enable SSL configuration, you must provide the password to the key store."
|
||||
exit 1
|
||||
print_validation_error "If you enable SSL configuration, you must provide the password to the key store."
|
||||
fi
|
||||
if [[ -z "$SPARK_SSL_TRUSTSTORE_PASSWORD" ]]; then
|
||||
error "If you enable SSL configuration, you must provide the password to the trust store."
|
||||
exit 1
|
||||
print_validation_error "If you enable SSL configuration, you must provide the password to the trust store."
|
||||
fi
|
||||
if [[ ! -f "${SPARK_CONFDIR}/certs/spark-keystore.jks" ]]; then
|
||||
error "If you enable SSL configuration, you must mount your keystore file to \"${SPARK_CONFDIR}/certs/spark-keystore.jks\""
|
||||
exit 1
|
||||
print_validation_error "If you enable SSL configuration, you must mount your keystore file to \"${SPARK_CONFDIR}/certs/spark-keystore.jks\""
|
||||
fi
|
||||
if [[ ! -f "${SPARK_CONFDIR}/certs/spark-truststore.jks" ]]; then
|
||||
error "If you enable SSL configuration, you must mount your trutstore file to \"${SPARK_CONFDIR}/certs/spark-truststore.jks\""
|
||||
exit 1
|
||||
print_validation_error "If you enable SSL configuration, you must mount your trutstore file to \"${SPARK_CONFDIR}/certs/spark-truststore.jks\""
|
||||
fi
|
||||
fi
|
||||
|
||||
# Validate RPC parameters
|
||||
if is_boolean_yes "$SPARK_RPC_AUTHENTICATION_ENABLED"; then
|
||||
if [[ -z "$SPARK_RPC_AUTHENTICATION_SECRET" ]]; then
|
||||
error "If you enable RPC authentication, you must provide the RPC authentication secret."
|
||||
exit 1
|
||||
print_validation_error "If you enable RPC authentication, you must provide the RPC authentication secret."
|
||||
fi
|
||||
fi
|
||||
|
||||
[[ "$error_code" -eq 0 ]] || exit "$error_code"
|
||||
}
|
||||
|
||||
########################
|
||||
|
||||
@@ -43,7 +43,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/).
|
||||
|
||||
|
||||
* [`2-debian-9`, `2.4.4-debian-9-r9`, `2`, `2.4.4`, `2.4.4-r9`, `latest` (2/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-spark/blob/2.4.4-debian-9-r9/2/debian-9/Dockerfile)
|
||||
* [`2-debian-9`, `2.4.4-debian-9-r10`, `2`, `2.4.4`, `2.4.4-r10`, `latest` (2/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-spark/blob/2.4.4-debian-9-r10/2/debian-9/Dockerfile)
|
||||
|
||||
Subscribe to project updates by watching the [bitnami/spark GitHub repo](https://github.com/bitnami/bitnami-docker-spark).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user