mirror of
https://github.com/bitnami/containers.git
synced 2026-10-17 21:13:11 +02:00
[bitnami/superset] Release 6.0.0-debian-12-r12 (#93230)
Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
This commit is contained in:
@@ -7,7 +7,7 @@ ARG DOWNLOADS_URL="downloads.bitnami.com/files/stacksmith"
|
||||
ARG TARGETARCH
|
||||
|
||||
LABEL org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \
|
||||
org.opencontainers.image.created="2026-05-15T09:07:27Z" \
|
||||
org.opencontainers.image.created="2026-05-15T11:05:22Z" \
|
||||
org.opencontainers.image.description="Application packaged by Broadcom, Inc." \
|
||||
org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/superset/README.md" \
|
||||
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/superset" \
|
||||
@@ -51,7 +51,7 @@ RUN /opt/bitnami/scripts/superset/postunpack.sh
|
||||
ENV APP_VERSION="6.0.0" \
|
||||
BITNAMI_APP_NAME="superset" \
|
||||
FLASK_APP="superset.app:create_app()" \
|
||||
IMAGE_REVISION="11" \
|
||||
IMAGE_REVISION="12" \
|
||||
LD_LIBRARY_PATH="/opt/bitnami/mariadb/lib:$LD_LIBRARY_PATH" \
|
||||
PATH="/opt/bitnami/superset/venv/bin:/opt/bitnami/python/bin:$PATH" \
|
||||
SUPERSET_HOME="/opt/bitnami/superset/superset_home"
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
# Copyright Broadcom, Inc. All Rights Reserved.
|
||||
# SPDX-License-Identifier: APACHE-2.0
|
||||
|
||||
services:
|
||||
postgresql:
|
||||
image: docker.io/bitnami/postgresql:latest
|
||||
volumes:
|
||||
- 'postgresql_data:/bitnami/postgresql'
|
||||
environment:
|
||||
- POSTGRESQL_DATABASE=bitnami_superset
|
||||
- POSTGRESQL_USERNAME=bn_superset
|
||||
- POSTGRESQL_PASSWORD=bitnami1
|
||||
# ALLOW_EMPTY_PASSWORD is recommended only for development.
|
||||
- ALLOW_EMPTY_PASSWORD=yes
|
||||
redis:
|
||||
image: docker.io/bitnami/redis:latest
|
||||
volumes:
|
||||
- 'redis_data:/bitnami/redis/data'
|
||||
environment:
|
||||
# ALLOW_EMPTY_PASSWORD is recommended only for development.
|
||||
- ALLOW_EMPTY_PASSWORD=yes
|
||||
- REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL
|
||||
superset-init:
|
||||
image: docker.io/bitnami/superset:6
|
||||
environment:
|
||||
- BITNAMI_DEBUG=true
|
||||
- SUPERSET_ROLE=init
|
||||
- SUPERSET_DATABASE_HOST=postgresql
|
||||
- SUPERSET_DATABASE_NAME=bitnami_superset
|
||||
- SUPERSET_DATABASE_USER=bn_superset
|
||||
- SUPERSET_DATABASE_PASSWORD=bitnami1
|
||||
- REDIS_HOST=redis
|
||||
- SUPERSET_SECRET_KEY=bitnami_superset_secret_key_1234567890
|
||||
depends_on:
|
||||
- postgresql
|
||||
- redis
|
||||
superset-worker:
|
||||
image: docker.io/bitnami/superset:6
|
||||
environment:
|
||||
- SUPERSET_ROLE=celery-worker
|
||||
- SUPERSET_DATABASE_HOST=postgresql
|
||||
- SUPERSET_DATABASE_NAME=bitnami_superset
|
||||
- SUPERSET_DATABASE_USER=bn_superset
|
||||
- SUPERSET_DATABASE_PASSWORD=bitnami1
|
||||
- REDIS_HOST=redis
|
||||
- SUPERSET_SECRET_KEY=bitnami_superset_secret_key_1234567890
|
||||
depends_on:
|
||||
superset-init:
|
||||
condition: service_completed_successfully
|
||||
superset-beat:
|
||||
image: docker.io/bitnami/superset:6
|
||||
environment:
|
||||
- SUPERSET_ROLE=celery-beat
|
||||
- SUPERSET_DATABASE_HOST=postgresql
|
||||
- SUPERSET_DATABASE_NAME=bitnami_superset
|
||||
- SUPERSET_DATABASE_USER=bn_superset
|
||||
- SUPERSET_DATABASE_PASSWORD=bitnami1
|
||||
- REDIS_HOST=redis
|
||||
- SUPERSET_SECRET_KEY=bitnami_superset_secret_key_1234567890
|
||||
depends_on:
|
||||
superset-init:
|
||||
condition: service_completed_successfully
|
||||
superset:
|
||||
image: docker.io/bitnami/superset:6
|
||||
environment:
|
||||
- SUPERSET_ROLE=webserver
|
||||
- SUPERSET_DATABASE_HOST=postgresql
|
||||
- SUPERSET_DATABASE_NAME=bitnami_superset
|
||||
- SUPERSET_DATABASE_USER=bn_superset
|
||||
- SUPERSET_DATABASE_PASSWORD=bitnami1
|
||||
- REDIS_HOST=redis
|
||||
- SUPERSET_SECRET_KEY=bitnami_superset_secret_key_1234567890
|
||||
ports:
|
||||
- '8080:8080'
|
||||
depends_on:
|
||||
superset-init:
|
||||
condition: service_completed_successfully
|
||||
|
||||
volumes:
|
||||
postgresql_data:
|
||||
driver: local
|
||||
redis_data:
|
||||
driver: local
|
||||
@@ -88,6 +88,28 @@ superset_initialize() {
|
||||
true
|
||||
}
|
||||
|
||||
########################
|
||||
# Wait for a connection to be available
|
||||
# Globals:
|
||||
# None
|
||||
# Arguments:
|
||||
# $1 - host
|
||||
# $2 - port
|
||||
# Returns:
|
||||
# 0 if successful, 1 otherwise
|
||||
#########################
|
||||
wait_for_connection() {
|
||||
local -r host="${1:?missing host}"
|
||||
local -r port="${2:?missing port}"
|
||||
check_connection() {
|
||||
(echo > /dev/tcp/"$host"/"$port") >/dev/null 2>&1
|
||||
}
|
||||
if ! retry_while "check_connection"; then
|
||||
error "Could not connect to ${host}:${port}"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
########################
|
||||
# Run Superset init commands
|
||||
# Globals:
|
||||
@@ -98,6 +120,13 @@ superset_initialize() {
|
||||
# None
|
||||
#########################
|
||||
superset_run_init() {
|
||||
if ! is_boolean_yes "$SUPERSET_SKIP_DATABASE_WAIT"; then
|
||||
info "Waiting for PostgreSQL to be available"
|
||||
wait_for_connection "$SUPERSET_DATABASE_HOST" "$SUPERSET_DATABASE_PORT_NUMBER"
|
||||
info "Waiting for Redis to be available"
|
||||
wait_for_connection "$REDIS_HOST" "$REDIS_PORT_NUMBER"
|
||||
fi
|
||||
|
||||
# Initialize the database
|
||||
info "Applying DB migrations"
|
||||
superset_execute db upgrade
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
# Copyright Broadcom, Inc. All Rights Reserved.
|
||||
# SPDX-License-Identifier: APACHE-2.0
|
||||
|
||||
services:
|
||||
postgresql:
|
||||
image: docker.io/bitnami/postgresql:latest
|
||||
volumes:
|
||||
- 'postgresql_data:/bitnami/postgresql'
|
||||
environment:
|
||||
- POSTGRESQL_DATABASE=bitnami_superset
|
||||
- POSTGRESQL_USERNAME=bn_superset
|
||||
- POSTGRESQL_PASSWORD=bitnami1
|
||||
# ALLOW_EMPTY_PASSWORD is recommended only for development.
|
||||
- ALLOW_EMPTY_PASSWORD=yes
|
||||
redis:
|
||||
image: docker.io/bitnami/redis:latest
|
||||
volumes:
|
||||
- 'redis_data:/bitnami/redis/data'
|
||||
environment:
|
||||
# ALLOW_EMPTY_PASSWORD is recommended only for development.
|
||||
- ALLOW_EMPTY_PASSWORD=yes
|
||||
- REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL
|
||||
superset-init:
|
||||
image: docker.io/bitnami/superset:6
|
||||
environment:
|
||||
- BITNAMI_DEBUG=true
|
||||
- SUPERSET_ROLE=init
|
||||
- SUPERSET_DATABASE_HOST=postgresql
|
||||
- SUPERSET_DATABASE_NAME=bitnami_superset
|
||||
- SUPERSET_DATABASE_USER=bn_superset
|
||||
- SUPERSET_DATABASE_PASSWORD=bitnami1
|
||||
- REDIS_HOST=redis
|
||||
- SUPERSET_SECRET_KEY=bitnami_superset_secret_key_1234567890
|
||||
depends_on:
|
||||
- postgresql
|
||||
- redis
|
||||
superset-worker:
|
||||
image: docker.io/bitnami/superset:6
|
||||
environment:
|
||||
- SUPERSET_ROLE=celery-worker
|
||||
- SUPERSET_DATABASE_HOST=postgresql
|
||||
- SUPERSET_DATABASE_NAME=bitnami_superset
|
||||
- SUPERSET_DATABASE_USER=bn_superset
|
||||
- SUPERSET_DATABASE_PASSWORD=bitnami1
|
||||
- REDIS_HOST=redis
|
||||
- SUPERSET_SECRET_KEY=bitnami_superset_secret_key_1234567890
|
||||
depends_on:
|
||||
superset-init:
|
||||
condition: service_completed_successfully
|
||||
superset-beat:
|
||||
image: docker.io/bitnami/superset:6
|
||||
environment:
|
||||
- SUPERSET_ROLE=celery-beat
|
||||
- SUPERSET_DATABASE_HOST=postgresql
|
||||
- SUPERSET_DATABASE_NAME=bitnami_superset
|
||||
- SUPERSET_DATABASE_USER=bn_superset
|
||||
- SUPERSET_DATABASE_PASSWORD=bitnami1
|
||||
- REDIS_HOST=redis
|
||||
- SUPERSET_SECRET_KEY=bitnami_superset_secret_key_1234567890
|
||||
depends_on:
|
||||
superset-init:
|
||||
condition: service_completed_successfully
|
||||
superset:
|
||||
image: docker.io/bitnami/superset:6
|
||||
environment:
|
||||
- SUPERSET_ROLE=webserver
|
||||
- SUPERSET_DATABASE_HOST=postgresql
|
||||
- SUPERSET_DATABASE_NAME=bitnami_superset
|
||||
- SUPERSET_DATABASE_USER=bn_superset
|
||||
- SUPERSET_DATABASE_PASSWORD=bitnami1
|
||||
- REDIS_HOST=redis
|
||||
- SUPERSET_SECRET_KEY=bitnami_superset_secret_key_1234567890
|
||||
ports:
|
||||
- '8080:8080'
|
||||
depends_on:
|
||||
superset-init:
|
||||
condition: service_completed_successfully
|
||||
|
||||
volumes:
|
||||
postgresql_data:
|
||||
driver: local
|
||||
redis_data:
|
||||
driver: local
|
||||
Reference in New Issue
Block a user