mirror of
https://github.com/bitnami/containers.git
synced 2026-03-04 14:57:23 +08:00
2.2.2-debian-10-r7 release
This commit is contained in:
@@ -14,7 +14,7 @@ RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "wait-for-port" "
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "python" "3.8.12-5" --checksum 18aaf8247baa258f4e16de86673a3e799cd50bbef2824f0d2ae805c9c2068f11
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "postgresql-client" "10.19.0-0" --checksum f32958c288efd50fb29133d614ce19dc46ff40add10fc82254b29c8a46df324c
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "ini-file" "1.4.1-0" --checksum 3d189e4b1fcdc330fb84c14a7c6fb296deff37d3142d9a17fe0c9a5dba51ef6d
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "git" "2.34.0-0" --checksum 468c6894fa5729edbb20c9055ee16f59fdaeee2d9350cb8e02094b07c7521129
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "git" "2.34.1-0" --checksum 3da2501870c9c3efe8cfa47b7bba894d8d97292a5274b682af1eded3b671641b
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.14.0-0" --checksum 3e6fc37ca073b10a73a804d39c2f0c028947a1a596382a4f8ebe43dfbaa3a25e
|
||||
RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "airflow" "2.2.2-0" --checksum 2155a8ff9e41a74c740e4dee06eceeb740a670cee5b71f9ee4417f54d6afbd9c
|
||||
RUN chmod g+rwX /opt/bitnami
|
||||
@@ -28,7 +28,7 @@ RUN /opt/bitnami/scripts/airflow/postunpack.sh
|
||||
RUN /opt/bitnami/scripts/locales/add-extra-locales.sh
|
||||
ENV AIRFLOW_HOME="/opt/bitnami/airflow" \
|
||||
BITNAMI_APP_NAME="airflow" \
|
||||
BITNAMI_IMAGE_VERSION="2.2.2-debian-10-r6" \
|
||||
BITNAMI_IMAGE_VERSION="2.2.2-debian-10-r7" \
|
||||
LANG="en_US.UTF-8" \
|
||||
LANGUAGE="en_US:en" \
|
||||
LD_LIBRARY_PATH="/opt/bitnami/python/lib/:/opt/bitnami/airflow/venv/lib/python3.8/site-packages/numpy.libs/:$LD_LIBRARY_PATH" \
|
||||
|
||||
@@ -8,10 +8,10 @@
|
||||
},
|
||||
"git": {
|
||||
"arch": "amd64",
|
||||
"digest": "468c6894fa5729edbb20c9055ee16f59fdaeee2d9350cb8e02094b07c7521129",
|
||||
"digest": "3da2501870c9c3efe8cfa47b7bba894d8d97292a5274b682af1eded3b671641b",
|
||||
"distro": "debian-10",
|
||||
"type": "NAMI",
|
||||
"version": "2.34.0-0"
|
||||
"version": "2.34.1-0"
|
||||
},
|
||||
"gosu": {
|
||||
"arch": "amd64",
|
||||
|
||||
@@ -101,7 +101,6 @@ airflow_initialize() {
|
||||
info "Configuration file found, loading configuration"
|
||||
fi
|
||||
|
||||
|
||||
# Check if Airflow has already been initialized and persisted in a previous run
|
||||
local -r app_name="airflow"
|
||||
if ! is_app_initialized "$app_name"; then
|
||||
@@ -154,15 +153,15 @@ airflow_execute_command() {
|
||||
local flags="${3:-}"
|
||||
|
||||
# The commands can contain more than one argument. Convert them to an array
|
||||
IFS=' ' read -ra oldCommand <<< "$oldCommand"
|
||||
IFS=' ' read -ra newCommand <<< "$newCommand"
|
||||
IFS=' ' read -ra oldCommand <<<"$oldCommand"
|
||||
IFS=' ' read -ra newCommand <<<"$newCommand"
|
||||
|
||||
# Execute commands depending on the version
|
||||
command=("${oldCommand[@]}")
|
||||
[[ "${BITNAMI_IMAGE_VERSION:0:1}" == "2" ]] && command=("${newCommand[@]}")
|
||||
|
||||
# Add flags if provided
|
||||
[[ -n "$flags" ]] && IFS=' ' read -ra flags <<< "$flags" && command+=("${flags[@]}")
|
||||
[[ -n "$flags" ]] && IFS=' ' read -ra flags <<<"$flags" && command+=("${flags[@]}")
|
||||
|
||||
debug "Executing ${AIRFLOW_BIN_DIR}/airflow ${command[*]}"
|
||||
debug_execute "${AIRFLOW_BIN_DIR}/airflow" "${command[@]}"
|
||||
@@ -207,7 +206,7 @@ airflow_generate_config() {
|
||||
|
||||
# Configure Airflow executor
|
||||
airflow_conf_set "core" "executor" "$AIRFLOW_EXECUTOR"
|
||||
[[ "$AIRFLOW_EXECUTOR" == "CeleryExecutor" || "$AIRFLOW_EXECUTOR" == "CeleryKubernetesExecutor" ]] && airflow_configure_celery_executor
|
||||
[[ "$AIRFLOW_EXECUTOR" == "CeleryExecutor" || "$AIRFLOW_EXECUTOR" == "CeleryKubernetesExecutor" ]] && airflow_configure_celery_executor
|
||||
true # Avoid the function to fail due to the check above
|
||||
}
|
||||
|
||||
@@ -261,8 +260,9 @@ airflow_configure_webserver_authentication() {
|
||||
|
||||
if is_boolean_yes "$AIRFLOW_LDAP_ENABLE"; then
|
||||
info "Enabling LDAP authentication"
|
||||
replace_in_file "$AIRFLOW_WEBSERVER_CONF_FILE" "# from flask_appbuilder.security.manager import AUTH_LDAP" "from flask_appbuilder.security.manager import AUTH_LDAP"
|
||||
replace_in_file "$AIRFLOW_WEBSERVER_CONF_FILE" "from flask_appbuilder.security.manager import AUTH_DB" "# from flask_appbuilder.security.manager import AUTH_DB"
|
||||
# Based on PR https://github.com/apache/airflow/pull/16647
|
||||
replace_in_file "$AIRFLOW_WEBSERVER_CONF_FILE" "# from airflow.www.fab_security.manager import AUTH_LDAP" "from airflow.www.fab_security.manager import AUTH_LDAP"
|
||||
replace_in_file "$AIRFLOW_WEBSERVER_CONF_FILE" "from airflow.www.fab_security.manager import AUTH_DB" "# from airflow.www.fab_security.manager import AUTH_DB"
|
||||
|
||||
# webserver config
|
||||
airflow_webserver_conf_set "AUTH_TYPE" "AUTH_LDAP"
|
||||
@@ -357,11 +357,11 @@ airflow_encode_url() {
|
||||
LC_COLLATE=C
|
||||
|
||||
local length="${#1}"
|
||||
for (( i = 0; i < length; i++ )); do
|
||||
for ((i = 0; i < length; i++)); do
|
||||
local c="${1:$i:1}"
|
||||
case $c in
|
||||
[a-zA-Z0-9.~_-]) printf '%s' "$c" ;;
|
||||
*) printf '%%%02X' "'$c" ;;
|
||||
[a-zA-Z0-9.~_-]) printf '%s' "$c" ;;
|
||||
*) printf '%%%02X' "'$c" ;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
||||
@@ -37,13 +37,13 @@ $ docker-compose up
|
||||
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.2.2`, `2.2.2-debian-10-r6`, `latest` (2/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-airflow/blob/2.2.2-debian-10-r6/2/debian-10/Dockerfile)
|
||||
* [`2`, `2-debian-10`, `2.2.2`, `2.2.2-debian-10-r7`, `latest` (2/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-airflow/blob/2.2.2-debian-10-r7/2/debian-10/Dockerfile)
|
||||
|
||||
Subscribe to project updates by watching the [bitnami/airflow GitHub repo](https://github.com/bitnami/bitnami-docker-airflow).
|
||||
|
||||
## Prerequisites
|
||||
|
||||
To run this application you need [Docker Engine](https://www.docker.com/products/docker-engine) >= `1.10.0`. [Docker Compose](https://www.docker.com/products/docker-compose) is recommended with a version `1.6.0` or later.
|
||||
To run this application you need [Docker Engine](https://www.docker.com/products/docker-engine) >= `1.10.0`. [Docker Compose](https://docs.docker.com/compose/) is recommended with a version `1.6.0` or later.
|
||||
|
||||
## How to use this image
|
||||
|
||||
@@ -124,7 +124,7 @@ If you want to run the application manually instead of using `docker-compose`, t
|
||||
-e AIRFLOW_DATABASE_USERNAME=bn_airflow \
|
||||
-e AIRFLOW_DATABASE_PASSWORD=bitnami1 \
|
||||
-e AIRFLOW_LOAD_EXAMPLES=yes \
|
||||
-e AIRFLOW_WEBSERVER_HOST=127.0.0.1 \
|
||||
-e AIRFLOW_WEBSERVER_HOST=airflow \
|
||||
--net airflow-tier \
|
||||
--volume airflow_scheduler_data:/bitnami \
|
||||
bitnami/airflow-scheduler:latest
|
||||
@@ -141,13 +141,13 @@ If you want to run the application manually instead of using `docker-compose`, t
|
||||
-e AIRFLOW_DATABASE_NAME=bitnami_airflow \
|
||||
-e AIRFLOW_DATABASE_USERNAME=bn_airflow \
|
||||
-e AIRFLOW_DATABASE_PASSWORD=bitnami1 \
|
||||
-e AIRFLOW_WEBSERVER_HOST=127.0.0.1 \
|
||||
-e AIRFLOW_WEBSERVER_HOST=airflow \
|
||||
--net airflow-tier \
|
||||
--volume airflow_worker_data:/bitnami \
|
||||
bitnami/airflow-worker:latest
|
||||
```
|
||||
|
||||
Access your application at http://your-ip:8080
|
||||
Access your application at `http://your-ip:8080`
|
||||
|
||||
### Persisting your application
|
||||
|
||||
@@ -282,6 +282,7 @@ services:
|
||||
-e AIRFLOW_DATABASE_USERNAME=bn_airflow \
|
||||
-e AIRFLOW_DATABASE_PASSWORD=bitnami1 \
|
||||
-e AIRFLOW_LOAD_EXAMPLES=yes \
|
||||
-e AIRFLOW_WEBSERVER_HOST=airflow \
|
||||
--net airflow-tier \
|
||||
--volume /path/to/airflow-scheduler-persistence:/bitnami \
|
||||
bitnami/airflow-scheduler:latest
|
||||
@@ -297,6 +298,7 @@ services:
|
||||
-e AIRFLOW_DATABASE_NAME=bitnami_airflow \
|
||||
-e AIRFLOW_DATABASE_USERNAME=bn_airflow \
|
||||
-e AIRFLOW_DATABASE_PASSWORD=bitnami1 \
|
||||
-e AIRFLOW_WEBSERVER_HOST=airflow \
|
||||
--net airflow-tier \
|
||||
--volume /path/to/airflow-worker-persistence:/bitnami \
|
||||
bitnami/airflow-worker:latest
|
||||
|
||||
Reference in New Issue
Block a user