fix(jupyterhub): airflow integration
This commit is contained in:
@@ -77,7 +77,6 @@ RUN pip uninstall -y \
|
|||||||
# 2. Find the pandas version in the file `dev/infra/Dockerfile`.
|
# 2. Find the pandas version in the file `dev/infra/Dockerfile`.
|
||||||
RUN mamba install --yes \
|
RUN mamba install --yes \
|
||||||
'aif360' \
|
'aif360' \
|
||||||
'airflow' \
|
|
||||||
'chromadb' \
|
'chromadb' \
|
||||||
'clickhouse-connect' \
|
'clickhouse-connect' \
|
||||||
'csvkit' \
|
'csvkit' \
|
||||||
@@ -142,6 +141,7 @@ RUN mamba install --yes \
|
|||||||
|
|
||||||
RUN pip install \
|
RUN pip install \
|
||||||
agno \
|
agno \
|
||||||
|
apache-airflow \
|
||||||
apache-airflow-client \
|
apache-airflow-client \
|
||||||
fastembed \
|
fastembed \
|
||||||
feature-engine \
|
feature-engine \
|
||||||
|
|||||||
@@ -77,7 +77,6 @@ RUN pip uninstall -y \
|
|||||||
# 2. Find the pandas version in the file `dev/infra/Dockerfile`.
|
# 2. Find the pandas version in the file `dev/infra/Dockerfile`.
|
||||||
RUN mamba install --yes \
|
RUN mamba install --yes \
|
||||||
'aif360' \
|
'aif360' \
|
||||||
'airflow' \
|
|
||||||
'chromadb' \
|
'chromadb' \
|
||||||
'clickhouse-connect' \
|
'clickhouse-connect' \
|
||||||
'csvkit' \
|
'csvkit' \
|
||||||
@@ -142,6 +141,7 @@ RUN mamba install --yes \
|
|||||||
|
|
||||||
RUN pip install \
|
RUN pip install \
|
||||||
agno \
|
agno \
|
||||||
|
apache-airflow \
|
||||||
apache-airflow-client \
|
apache-airflow-client \
|
||||||
fastembed \
|
fastembed \
|
||||||
feature-engine \
|
feature-engine \
|
||||||
|
|||||||
@@ -178,12 +178,23 @@ singleuser:
|
|||||||
optional: true # Don't fail if PVC doesn't exist yet
|
optional: true # Don't fail if PVC doesn't exist yet
|
||||||
extraVolumeMounts:
|
extraVolumeMounts:
|
||||||
- name: airflow-dags
|
- name: airflow-dags
|
||||||
mountPath: /opt/airflow-dags
|
mountPath: /home/jovyan/airflow-dags
|
||||||
readOnly: false
|
readOnly: false
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
networkPolicy:
|
networkPolicy:
|
||||||
egress:
|
egress:
|
||||||
|
{{- if eq .Env.JUPYTERHUB_AIRFLOW_DAGS_PERSISTENCE_ENABLED "true" }}
|
||||||
|
# Allow communication with Airflow API server in the same namespace
|
||||||
|
- to:
|
||||||
|
- podSelector:
|
||||||
|
matchLabels:
|
||||||
|
release: airflow
|
||||||
|
component: api-server
|
||||||
|
ports:
|
||||||
|
- port: 8080
|
||||||
|
protocol: TCP
|
||||||
|
{{- end }}
|
||||||
- to:
|
- to:
|
||||||
- namespaceSelector:
|
- namespaceSelector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ export JUPYTERHUB_NFS_PV_ENABLED := env("JUPYTERHUB_NFS_PV_ENABLED", "")
|
|||||||
export JUPYTERHUB_STORAGE_CLASS := env("JUPYTERHUB_STORAGE_CLASS", "")
|
export JUPYTERHUB_STORAGE_CLASS := env("JUPYTERHUB_STORAGE_CLASS", "")
|
||||||
export JUPYTERHUB_VAULT_INTEGRATION_ENABLED := env("JUPYTERHUB_VAULT_INTEGRATION_ENABLED", "")
|
export JUPYTERHUB_VAULT_INTEGRATION_ENABLED := env("JUPYTERHUB_VAULT_INTEGRATION_ENABLED", "")
|
||||||
export JUPYTERHUB_AIRFLOW_DAGS_PERSISTENCE_ENABLED := env("JUPYTERHUB_AIRFLOW_DAGS_PERSISTENCE_ENABLED", "")
|
export JUPYTERHUB_AIRFLOW_DAGS_PERSISTENCE_ENABLED := env("JUPYTERHUB_AIRFLOW_DAGS_PERSISTENCE_ENABLED", "")
|
||||||
export JUPYTER_PYTHON_KERNEL_TAG := env("JUPYTER_PYTHON_KERNEL_TAG", "python-3.12-36")
|
export JUPYTER_PYTHON_KERNEL_TAG := env("JUPYTER_PYTHON_KERNEL_TAG", "python-3.12-37")
|
||||||
export KERNEL_IMAGE_BUUN_STACK_REPOSITORY := env("KERNEL_IMAGE_BUUN_STACK_REPOSITORY", "buun-stack-notebook")
|
export KERNEL_IMAGE_BUUN_STACK_REPOSITORY := env("KERNEL_IMAGE_BUUN_STACK_REPOSITORY", "buun-stack-notebook")
|
||||||
export KERNEL_IMAGE_BUUN_STACK_CUDA_REPOSITORY := env("KERNEL_IMAGE_BUUN_STACK_CUDA_REPOSITORY", "buun-stack-cuda-notebook")
|
export KERNEL_IMAGE_BUUN_STACK_CUDA_REPOSITORY := env("KERNEL_IMAGE_BUUN_STACK_CUDA_REPOSITORY", "buun-stack-cuda-notebook")
|
||||||
export JUPYTER_PROFILE_MINIMAL_ENABLED := env("JUPYTER_PROFILE_MINIMAL_ENABLED", "false")
|
export JUPYTER_PROFILE_MINIMAL_ENABLED := env("JUPYTER_PROFILE_MINIMAL_ENABLED", "false")
|
||||||
|
|||||||
Reference in New Issue
Block a user