Skip to content

Commit

Permalink
Merge pull request #282 from coderxio/requirements-install
Browse files Browse the repository at this point in the history
updates to docker-compose to accomodate easy installation of new pack…
  • Loading branch information
jrlegrand authored May 13, 2024
2 parents fb97f2e + da72f3c commit ec93e12
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os
import pendulum
# zipfile_deflate64 is needed likely because of how CMS zips these files
import zipfile_deflate64 as zipfile
import zipfile_deflate64 as zipfile # this package is not easily accessible in this context - consider an alternative

from sagerx import create_path, get_dataset, read_sql_file, get_sql_list, alert_slack_channel

Expand Down
5 changes: 3 additions & 2 deletions airflow/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
apache-airflow[amazon]
# Any change made here should accompany an increment
# to the image version on line 5 of docker-compose.yml

dbt-postgres==1.4.1
zipfile_deflate64
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ version: "3.8"
x-airflow-common: &airflow-common
build:
context: ./airflow
image: sagerx_airflow
image: sagerx_airflow:v0.0.1 # versioning allows a rebuild of docker image where necessary
environment: &airflow-common-env
AIRFLOW__CORE__EXECUTOR: LocalExecutor
AIRFLOW__CORE__DAGS_ARE_PAUSED_AT_CREATION: "true"
AIRFLOW__CORE__LOAD_EXAMPLES: "false"
#AIRFLOW__WEBSERVER__WEB_SERVER_MASTER_TIMEOUT: "300" #un-comment if gunicorn timeout reached
#AIRFLOW__WEBSERVER__WEB_SERVER_MASTER_TIMEOUT: "300" # un-comment if gunicorn timeout reached
AIRFLOW__DATABASE__SQL_ALCHEMY_CONN: postgresql+psycopg2://airflow:airflow@postgres:5432/airflow
AIRFLOW_CONN_POSTGRES_DEFAULT: postgresql://sagerx:sagerx@postgres:5432/sagerx
AIRFLOW_VAR_UMLS_API: ${UMLS_API}
Expand Down

0 comments on commit ec93e12

Please sign in to comment.