This repository has been archived by the owner on Nov 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from PascalEgn/fix-makefile
make: update to docker compose v2
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" |