Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #108 from PascalEgn/fix-makefile
Browse files Browse the repository at this point in the history
make: update to docker compose v2
  • Loading branch information
PascalEgn authored Sep 2, 2024
2 parents 246e4da + 58257e3 commit 61aa049
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@ export AIRFLOW_PROJ_DIR=$(AIRFLOW_HOME)
all: run

run:
docker-compose up
docker compose up

clean:
docker-compose down
docker compose down

init: backoffice-init workflows-init

backoffice-init:
docker-compose exec backoffice-webserver python manage.py create_groups
docker-compose exec backoffice-webserver python manage.py loaddata backoffice/users/fixtures/users.json
docker-compose exec backoffice-webserver python manage.py loaddata backoffice/users/fixtures/tokens.json
docker compose exec backoffice-webserver python manage.py create_groups
docker compose exec backoffice-webserver python manage.py loaddata backoffice/users/fixtures/users.json
docker compose exec backoffice-webserver python manage.py loaddata backoffice/users/fixtures/tokens.json
echo "\033[1;32memail: [email protected] / password: admin \033[0m"
echo "Backoffice initialized"

workflows-init:
docker-compose exec airflow-webserver /entrypoint airflow connections import ./scripts/connections/connections.json
docker-compose exec airflow-webserver /entrypoint airflow variables import ./scripts/variables/variables.json
docker compose exec airflow-webserver /entrypoint airflow connections import ./scripts/connections/connections.json
docker compose exec airflow-webserver /entrypoint airflow variables import ./scripts/variables/variables.json
echo "\033[31mCHANGE inspire_token in Admin->Variables\033[0m"
echo "\033[1;32musername: airflow / password: airflow \033[0m"
echo "Workflows initialized"

0 comments on commit 61aa049

Please sign in to comment.