Skip to content

Commit

Permalink
Airflow version updgrade and fix superset
Browse files Browse the repository at this point in the history
  • Loading branch information
anilkulkarni87 committed Dec 3, 2023
1 parent b49eab1 commit f95e070
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
FROM apache/airflow:2.3.0-python3.10
FROM apache/airflow:2.7.3-python3.10
RUN pip install --no-cache-dir td-client
2 changes: 1 addition & 1 deletion SUPERSET.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This chart provides the total tests done in Albany county per day and the new po
Once the instructions to start Airflow is complete, follow the below steps:
- Connect to the superset container.
```
docker exec -it airflowdocker_superset_1 /bin/bash
docker exec -it airflow-docker-superset-1 /bin/bash
```
- Create user in superset
```
Expand Down
18 changes: 11 additions & 7 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ x-airflow-common:
#Example Dags will not be loaded
AIRFLOW__CORE__LOAD_EXAMPLES: 'false'
AIRFLOW__WEBSERVER__RBAC: 'true'
_AIRFLOW_DB_UPGRADE: 'true'
_AIRFLOW_DB_MIGRATE: 'true'
_AIRFLOW_WWW_USER_CREATE: 'true'
_AIRFLOW_WWW_USER_USERNAME: ${_AIRFLOW_WWW_USER_USERNAME:-airflow}
_AIRFLOW_WWW_USER_PASSWORD: ${_AIRFLOW_WWW_USER_PASSWORD:-airflow}
Expand Down Expand Up @@ -107,15 +107,19 @@ services:

superset:
image: apache/superset:latest
# command:
# - superset fab create-admin --username admin --firstname Superset --lastname Admin --email admin@superset.com --password admin
# - superset db upgrade
# - superset init
platform: linux/amd64
environment:
SUPERSET_SECRET_KEY: 123abc
# command: >
# bash -c " superset fab create-admin --username admin --firstname Superset --lastname Admin --email admin@superset.com --password admin
# && superset db upgrade
# && superset init"
ports:
- 8090:8080
- 8091:8088

minio:
image: minio/minio:latest
platform: linux/amd64
container_name: minio
command: minio server /data --console-address ":9001"
environment:
Expand Down Expand Up @@ -262,7 +266,7 @@ services:
# yamllint enable rule:line-length
environment:
<<: *airflow-common-env
_AIRFLOW_DB_UPGRADE: 'true'
_AIRFLOW_DB_MIGRATE: 'true'
_AIRFLOW_WWW_USER_CREATE: 'true'
_AIRFLOW_WWW_USER_USERNAME: ${_AIRFLOW_WWW_USER_USERNAME:-airflow}
_AIRFLOW_WWW_USER_PASSWORD: ${_AIRFLOW_WWW_USER_PASSWORD:-airflow}
Expand Down

0 comments on commit f95e070

Please sign in to comment.