fix(docs): use python -m pip to bypass /root/bin permission denied in docker exec
This commit is contained in:
@@ -240,11 +240,15 @@ docker ps --filter "name=airflow" --format "table {{.Names}}\t{{.Image}}\t{{.Sta
|
|||||||
Gunakan `docker exec` untuk memasang pustaka yang belum ada (`astronomer-cosmos` dan `dlt`) langsung ke worker/scheduler tanpa mematikan layanan. *(Catatan: Pustaka `apache-airflow-providers-git`, `dbt-postgres`, `duckdb`, `pyiceberg`, dan `sling` sudah tersedia bawaan (*built-in*) di image resmi)*:
|
Gunakan `docker exec` untuk memasang pustaka yang belum ada (`astronomer-cosmos` dan `dlt`) langsung ke worker/scheduler tanpa mematikan layanan. *(Catatan: Pustaka `apache-airflow-providers-git`, `dbt-postgres`, `duckdb`, `pyiceberg`, dan `sling` sudah tersedia bawaan (*built-in*) di image resmi)*:
|
||||||
```bash
|
```bash
|
||||||
# Injeksi ke Scheduler
|
# Injeksi ke Scheduler
|
||||||
docker exec -u airflow <nama_kontainer_scheduler> pip install --no-cache-dir \
|
docker exec -u airflow <nama_kontainer_scheduler> python -m pip install --no-cache-dir \
|
||||||
astronomer-cosmos==1.15.1 dlt[duckdb,filesystem]==1.6.1
|
astronomer-cosmos==1.15.1 dlt[duckdb,filesystem]==1.6.1
|
||||||
|
|
||||||
# Injeksi ke DAG Processor
|
# Injeksi ke DAG Processor
|
||||||
docker exec -u airflow <nama_kontainer_dag_processor> pip install --no-cache-dir \
|
docker exec -u airflow <nama_kontainer_dag_processor> python -m pip install --no-cache-dir \
|
||||||
|
astronomer-cosmos==1.15.1 dlt[duckdb,filesystem]==1.6.1
|
||||||
|
|
||||||
|
# Injeksi ke Webserver (Konsistensi UI)
|
||||||
|
docker exec -u airflow <nama_kontainer_webserver> python -m pip install --no-cache-dir \
|
||||||
astronomer-cosmos==1.15.1 dlt[duckdb,filesystem]==1.6.1
|
astronomer-cosmos==1.15.1 dlt[duckdb,filesystem]==1.6.1
|
||||||
|
|
||||||
# Verifikasi instalasi berhasil
|
# Verifikasi instalasi berhasil
|
||||||
|
|||||||
Reference in New Issue
Block a user