@@ -37,7 +37,7 @@ test-unit:
3737
3838test-features :
3939 @ echo -e " $( BUILD_PRINT) Gherkin Features Testing ...$( END_BUILD_PRINT) "
40- # @ tox -e features
40+ @ tox -e features
4141
4242test-e2e :
4343 @ echo -e " $( BUILD_PRINT) End to End Testing ...$( END_BUILD_PRINT) "
@@ -91,11 +91,41 @@ create-env-airflow:
9191 @ chmod 777 ${AIRFLOW_INFRA_FOLDER} /logs ${AIRFLOW_INFRA_FOLDER} /plugins ${AIRFLOW_INFRA_FOLDER} /.env
9292 @ cp requirements.txt ./infra/airflow/
9393
94+ create-env-airflow-cluster :
95+ @ echo -e " $( BUILD_PRINT) Create Airflow env $( END_BUILD_PRINT) "
96+ @ echo -e " $( BUILD_PRINT) ${AIRFLOW_INFRA_FOLDER} ${ENVIRONMENT} $( END_BUILD_PRINT) "
97+ @ mkdir -p ${AIRFLOW_INFRA_FOLDER} /logs ${AIRFLOW_INFRA_FOLDER} /plugins ${AIRFLOW_INFRA_FOLDER} /.env
98+ @ ln -s -f -n ${PROJECT_PATH} /dags ${AIRFLOW_INFRA_FOLDER} /dags
99+ @ ln -s -f -n ${PROJECT_PATH} /ted_sws ${AIRFLOW_INFRA_FOLDER} /ted_sws
100+ @ chmod 777 ${AIRFLOW_INFRA_FOLDER} /logs ${AIRFLOW_INFRA_FOLDER} /plugins ${AIRFLOW_INFRA_FOLDER} /.env
101+ @ cp requirements.txt ./infra/airflow-cluster/
102+
94103build-airflow : guard-ENVIRONMENT create-env-airflow build-externals
95104 @ echo -e " $( BUILD_PRINT) Build Airflow services $( END_BUILD_PRINT) "
96- @ docker-compose -p ${ENVIRONMENT} --file ./infra/airflow/docker-compose.yaml --env-file ${ENV_FILE} build --no-cache --force-rm
105+ @ docker build -t meaningfy/airflow ./infra/airflow/
97106 @ docker-compose -p ${ENVIRONMENT} --file ./infra/airflow/docker-compose.yaml --env-file ${ENV_FILE} up -d --force-recreate
98107
108+ build-airflow-cluster : guard-ENVIRONMENT create-env-airflow-cluster build-externals
109+ @ echo -e " $( BUILD_PRINT) Build Airflow services $( END_BUILD_PRINT) "
110+ @ docker build -t meaningfy/airflow ./infra/airflow-cluster/
111+ @ docker-compose -p ${ENVIRONMENT} --file ./infra/airflow-cluster/docker-compose.yaml --env-file ${ENV_FILE} up -d airflow-init
112+
113+ start-airflow-cluster : build-externals
114+ @ echo -e " $( BUILD_PRINT) Starting Airflow services $( END_BUILD_PRINT) "
115+ @ docker-compose -p ${ENVIRONMENT} --file ./infra/airflow-cluster/docker-compose.yaml --env-file ${ENV_FILE} up -d --force-recreate airflow-webserver airflow-scheduler airflow-triggerer flower
116+
117+ start-airflow-cluster-worker : build-externals
118+ @ echo -e " $( BUILD_PRINT) Starting Airflow services $( END_BUILD_PRINT) "
119+ @ docker-compose -p ${ENVIRONMENT} --file ./infra/airflow-cluster/docker-compose.yaml --env-file ${ENV_FILE} up -d airflow-worker
120+
121+ stop-airflow-cluster :
122+ @ echo -e " $( BUILD_PRINT) Stopping Airflow Cluster $( END_BUILD_PRINT) "
123+ @ docker-compose -p ${ENVIRONMENT} --file ./infra/airflow-cluster/docker-compose.yaml --env-file ${ENV_FILE} down airflow-webserver airflow-scheduler airflow-triggerer flower
124+
125+ stop-airflow-cluster-worker :
126+ @ echo -e " $( BUILD_PRINT) Stopping Airflow Cluster Worker $( END_BUILD_PRINT) "
127+ @ docker-compose -p ${ENVIRONMENT} --file ./infra/airflow-cluster/docker-compose.yaml --env-file ${ENV_FILE} down airflow-worker
128+
99129start-airflow : build-externals
100130 @ echo -e " $( BUILD_PRINT) Starting Airflow services $( END_BUILD_PRINT) "
101131 @ docker-compose -p ${ENVIRONMENT} --file ./infra/airflow/docker-compose.yaml --env-file ${ENV_FILE} up -d
@@ -340,3 +370,7 @@ restore-mongodb:
340370 @ docker exec -it mongodb-${ENVIRONMENT} rm -rf mongodb_dump
341371 @ echo -e " Finish restore data in mongodb."
342372
373+ install-allure :
374+ @ echo -e " Start install Allure commandline."
375+ @ apt install npm
376+ @ npm install -g allure-commandline
0 commit comments