Skip to content

Commit

Permalink
chore: move compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
vmttn committed Sep 28, 2023
1 parent 778c65d commit 715b6b6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: "data-inclusion"
x-airflow-common:
&airflow-common
build:
context: ../../pipeline
context: ../pipeline

environment:
&airflow-common-environment
Expand Down Expand Up @@ -38,10 +38,10 @@ x-airflow-common:

volumes:
- airflow-logs:/opt/airflow/logs
- ./../../pipeline/dbt:/opt/airflow/dbt
- ./../../pipeline/dags:/opt/airflow/dags
- ./../../pipeline/logs:/opt/airflow/logs
- ./../../pipeline/src:/opt/airflow/data-inclusion/src
- ./../pipeline/dbt:/opt/airflow/dbt
- ./../pipeline/dags:/opt/airflow/dags
- ./../pipeline/logs:/opt/airflow/logs
- ./../pipeline/src:/opt/airflow/data-inclusion/src

user: 0:0

Expand Down
14 changes: 7 additions & 7 deletions deployment/modules/stack_data/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ resource "null_resource" "up" {
provisioner "remote-exec" {
inline = [
"rm -rf ${local.work_dir}",
"mkdir -p ${local.work_dir}/deployment/docker",
"mkdir -p ${local.work_dir}/deployment",
]
}

Expand All @@ -187,24 +187,24 @@ resource "null_resource" "up" {
SIRENE_STOCK_UNITE_LEGALE_FILE_URL=https://www.data.gouv.fr/fr/datasets/r/825f4199-cadd-486c-ac46-a65a8ea1a047
EOT
)
destination = "${local.work_dir}/deployment/docker/.env"
destination = "${local.work_dir}/deployment/.env"
}

provisioner "file" {
source = "${path.module}/../../../pipeline"
source = "${path.root}/../pipeline"
destination = "${local.work_dir}/"
}

provisioner "file" {
source = "${path.module}/../../docker"
destination = "${local.work_dir}/deployment/"
source = "${path.root}/../deployment/docker-compose.yml"
destination = "${local.work_dir}/deployment/docker-compose.yml"
}

provisioner "remote-exec" {
inline = [
"cd ${local.work_dir}/deployment/docker",
"cd ${local.work_dir}/deployment",
"docker compose up --quiet-pull --detach 2>&1 | cat",
"rm -f ${local.work_dir}/deployment/docker/.env",
"rm -f ${local.work_dir}/deployment/.env",
]
}
}

0 comments on commit 715b6b6

Please sign in to comment.