UNCLASSIFIED

Commit c7ba8434 authored by Austin Denton's avatar Austin Denton
Browse files

Update to 2.0.2

parent 2bc51a7d
Pipeline #255293 canceled with stages
in 2 minutes and 13 seconds
...@@ -2,7 +2,7 @@ ARG BASE_REGISTRY=registry1.dsop.io ...@@ -2,7 +2,7 @@ ARG BASE_REGISTRY=registry1.dsop.io
ARG BASE_IMAGE=ironbank/redhat/ubi/ubi8 ARG BASE_IMAGE=ironbank/redhat/ubi/ubi8
ARG BASE_TAG=8.3 ARG BASE_TAG=8.3
FROM bitnami/airflow-scheduler:2.0.1-debian-10-r55 as base FROM bitnami/airflow-scheduler:2.0.2-debian-10-r18 as base
FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
ARG BITNAMI_HOME=/opt/bitnami ARG BITNAMI_HOME=/opt/bitnami
ARG BITNAMI_DIR=/bitnami ARG BITNAMI_DIR=/bitnami
...@@ -47,7 +47,7 @@ RUN /opt/bitnami/scripts/airflow-scheduler/postunpack.sh && \ ...@@ -47,7 +47,7 @@ RUN /opt/bitnami/scripts/airflow-scheduler/postunpack.sh && \
ENV AIRFLOW_HOME="/opt/bitnami/airflow" \ ENV AIRFLOW_HOME="/opt/bitnami/airflow" \
BITNAMI_APP_NAME="airflow-scheduler" \ BITNAMI_APP_NAME="airflow-scheduler" \
BITNAMI_IMAGE_VERSION="2.0.1-debian-10-r54" \ BITNAMI_IMAGE_VERSION="2.0.2-debian-10-r18" \
LD_LIBRARY_PATH="/opt/bitnami/python/lib/:/opt/bitnami/airflow/venv/lib/python3.8/site-packages/numpy.libs/:$LD_LIBRARY_PATH" \ LD_LIBRARY_PATH="/opt/bitnami/python/lib/:/opt/bitnami/airflow/venv/lib/python3.8/site-packages/numpy.libs/:$LD_LIBRARY_PATH" \
LIBNSS_WRAPPER_PATH="/opt/bitnami/common/lib/libnss_wrapper.so" \ LIBNSS_WRAPPER_PATH="/opt/bitnami/common/lib/libnss_wrapper.so" \
LNAME="airflow" \ LNAME="airflow" \
......
...@@ -34,8 +34,8 @@ You can find the default credentials and available configuration options in the ...@@ -34,8 +34,8 @@ You can find the default credentials and available configuration options in the
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/). 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/).
* [`2`, `2-debian-10`, `2.0.1`, `2.0.1-debian-10-r53`, `latest` (2/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-airflow-scheduler/blob/2.0.1-debian-10-r53/2/debian-10/Dockerfile) * [`2`, `2-debian-10`, `2.0.2`, `2.0.2-debian-10-r18`, `latest` (2/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-airflow-scheduler/blob/2.0.2-debian-10-r18/2/debian-10/Dockerfile)
* [`1`, `1-debian-10`, `1.10.15`, `1.10.15-debian-10-r19` (1/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-airflow-scheduler/blob/1.10.15-debian-10-r19/1/debian-10/Dockerfile) * [`1`, `1-debian-10`, `1.10.15`, `1.10.15-debian-10-r51` (1/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-airflow-scheduler/blob/1.10.15-debian-10-r51/1/debian-10/Dockerfile)
Subscribe to project updates by watching the [bitnami/airflow GitHub repo](https://github.com/bitnami/bitnami-docker-airflow-scheduler). Subscribe to project updates by watching the [bitnami/airflow GitHub repo](https://github.com/bitnami/bitnami-docker-airflow-scheduler).
......
{ {
"airflow-scheduler": { "airflow-scheduler": {
"arch": "amd64", "arch": "amd64",
"digest": "6f4388df02d2115b0981c067c284532ec1adf038e7b4dd65126b43c9b9ce815b", "digest": "02fddc23d0f87f075cb9070a219329c6fe95b1c25e71dd0dd7f73d77e5e284ea",
"distro": "debian-10", "distro": "debian-10",
"type": "NAMI", "type": "NAMI",
"version": "2.0.1-3" "version": "2.0.2-1"
}, },
"gosu": { "gosu": {
"arch": "amd64", "arch": "amd64",
...@@ -29,10 +29,10 @@ ...@@ -29,10 +29,10 @@
}, },
"python": { "python": {
"arch": "amd64", "arch": "amd64",
"digest": "4f1f6b81a3617dfaaa2c579510118ef6df07119977a5d6ca7df3cf485fca709a", "digest": "b7a37a0590eff13717c191c90dc277f26706196c5fbf2a6b79019bd9f1032f68",
"distro": "debian-10", "distro": "debian-10",
"type": "NAMI", "type": "NAMI",
"version": "3.8.9-0" "version": "3.8.10-2"
}, },
"wait-for-port": { "wait-for-port": {
"arch": "amd64", "arch": "amd64",
......
...@@ -181,7 +181,7 @@ validate_ipv4() { ...@@ -181,7 +181,7 @@ validate_ipv4() {
local stat=1 local stat=1
if [[ $ip =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then if [[ $ip =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
read -r -a ip_array <<< "$(tr '.' ' ' <<< "$ip")" read -r -a ip_array <<< "$(tr '.' ' ' <<< "$ip")"
[[ ${ip_array[0]} -le 255 && ${ip_array[1]} -le 255 \ [[ ${ip_array[0]} -le 255 && ${ip_array[1]} -le 255 \
&& ${ip_array[2]} -le 255 && ${ip_array[3]} -le 255 ]] && ${ip_array[2]} -le 255 && ${ip_array[3]} -le 255 ]]
stat=$? stat=$?
......
...@@ -180,6 +180,7 @@ web_server_reload() { ...@@ -180,6 +180,7 @@ web_server_reload() {
# --apache-move-htaccess - Move .htaccess files to a common place so they can be loaded during Apache startup # --apache-move-htaccess - Move .htaccess files to a common place so they can be loaded during Apache startup
# NGINX-specific flags: # NGINX-specific flags:
# --nginx-additional-configuration - Additional server block configuration (no default) # --nginx-additional-configuration - Additional server block configuration (no default)
# --nginx-external-configuration - Configuration external to server block (no default)
# Returns: # Returns:
# true if the configuration was enabled, false otherwise # true if the configuration was enabled, false otherwise
######################## ########################
...@@ -212,6 +213,7 @@ ensure_web_server_app_configuration_exists() { ...@@ -212,6 +213,7 @@ ensure_web_server_app_configuration_exists() {
| --apache-before-vhost-configuration \ | --apache-before-vhost-configuration \
| --apache-allow-override \ | --apache-allow-override \
| --apache-extra-directory-configuration \ | --apache-extra-directory-configuration \
| --apache-proxy-address \
| --apache-move-htaccess \ | --apache-move-htaccess \
) )
apache_args+=("${1//apache-/}" "${2:?missing value}") apache_args+=("${1//apache-/}" "${2:?missing value}")
...@@ -219,7 +221,8 @@ ensure_web_server_app_configuration_exists() { ...@@ -219,7 +221,8 @@ ensure_web_server_app_configuration_exists() {
;; ;;
# Specific NGINX flags # Specific NGINX flags
--nginx-additional-configuration) --nginx-additional-configuration \
| --nginx-external-configuration)
nginx_args+=("${1//nginx-/}" "${2:?missing value}") nginx_args+=("${1//nginx-/}" "${2:?missing value}")
shift shift
;; ;;
......
...@@ -16,6 +16,21 @@ set -o pipefail ...@@ -16,6 +16,21 @@ set -o pipefail
print_welcome_page print_welcome_page
if ! am_i_root && [[ -e "$LIBNSS_WRAPPER_PATH" ]]; then
info "Enabling non-root system user with nss_wrapper"
echo "airflow:x:$(id -u):$(id -g):Airflow:$AIRFLOW_HOME:/bin/false" > "$NSS_WRAPPER_PASSWD"
echo "airflow:x:$(id -g):" > "$NSS_WRAPPER_GROUP"
export LD_PRELOAD="$LIBNSS_WRAPPER_PATH"
fi
# Install custom python package if requirements.txt is present
if [[ -f "/bitnami/python/requirements.txt" ]]; then
. /opt/bitnami/airflow/venv/bin/activate
pip install -r /bitnami/python/requirements.txt
deactivate
fi
if [[ "$*" = *"/opt/bitnami/scripts/airflow-scheduler/run.sh"* || "$*" = *"/run.sh"* ]]; then if [[ "$*" = *"/opt/bitnami/scripts/airflow-scheduler/run.sh"* || "$*" = *"/run.sh"* ]]; then
info "** Starting Airflow setup **" info "** Starting Airflow setup **"
/opt/bitnami/scripts/airflow-scheduler/setup.sh /opt/bitnami/scripts/airflow-scheduler/setup.sh
......
...@@ -2,8 +2,7 @@ ...@@ -2,8 +2,7 @@
# Bitnami Airflow library # Bitnami Airflow library
# shellcheck disable=SC1091 # shellcheck disable=SC1091,SC2153
# shellcheck disable=SC2153
# Load Generic Libraries # Load Generic Libraries
. /opt/bitnami/scripts/libfile.sh . /opt/bitnami/scripts/libfile.sh
...@@ -23,9 +22,17 @@ ...@@ -23,9 +22,17 @@
# Arguments: # Arguments:
# None # None
# Returns: # Returns:
# None # 0 if the validation succeeded, 1 otherwise
######################### #########################
airflow_validate() { airflow_validate() {
local error_code=0
# Auxiliary functions
print_validation_error() {
error "$1"
error_code=1
}
# Check postgresql host # Check postgresql host
[[ -z "$AIRFLOW_DATABASE_HOST" ]] && print_validation_error "Missing AIRFLOW_DATABASE_HOST" [[ -z "$AIRFLOW_DATABASE_HOST" ]] && print_validation_error "Missing AIRFLOW_DATABASE_HOST"
...@@ -46,6 +53,8 @@ airflow_validate() { ...@@ -46,6 +53,8 @@ airflow_validate() {
[[ -z "$AIRFLOW_POOL_DESC" ]] && print_validation_error "Provided AIRFLOW_POOL_NAME but missing AIRFLOW_POOL_DESC" [[ -z "$AIRFLOW_POOL_DESC" ]] && print_validation_error "Provided AIRFLOW_POOL_NAME but missing AIRFLOW_POOL_DESC"
[[ -z "$AIRFLOW_POOL_SIZE" ]] && print_validation_error "Provided AIRFLOW_POOL_NAME but missing AIRFLOW_POOL_SIZE" [[ -z "$AIRFLOW_POOL_SIZE" ]] && print_validation_error "Provided AIRFLOW_POOL_NAME but missing AIRFLOW_POOL_SIZE"
fi fi
return "$error_code"
} }
######################## ########################
...@@ -429,4 +438,4 @@ is_airflow_not_running() { ...@@ -429,4 +438,4 @@ is_airflow_not_running() {
airflow_stop() { airflow_stop() {
info "Stopping Airflow..." info "Stopping Airflow..."
stop_service_using_pid "$AIRFLOW_PID_FILE" stop_service_using_pid "$AIRFLOW_PID_FILE"
} }
\ No newline at end of file
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
# Bitnami Airflow library # Bitnami Airflow library
# shellcheck disable=SC1091 # shellcheck disable=SC1091
# shellcheck disable=SC2153
# Load Generic Libraries # Load Generic Libraries
. /opt/bitnami/scripts/libfile.sh . /opt/bitnami/scripts/libfile.sh
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment