From aab056d223e6e4e1aaf457eb05cc4f3dd76b9aae Mon Sep 17 00:00:00 2001 From: Louis Date: Fri, 14 May 2021 18:35:34 +0200 Subject: [PATCH] feat: change to bash the default SHELL for GNU users the default shell for makefiles for GNU users is sh and it does not include the "source" command. --- Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 2fc5ccf..2e90b24 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,8 @@ +ifeq ($(SHELL),/bin/sh) + SHELL:=/bin/bash +endif pre-requesites: - source vars_base && cd Iac/prerequesites && terraform init && terraform apply + source vars_base && cd IaC/prerequesites && terraform init && terraform apply build-docker: source vars_base && cd tracking_server && docker build -t $${TF_VAR_mlflow_docker_image} -f tracking.Dockerfile . @@ -8,16 +11,16 @@ push-docker: source vars_base && docker push $${TF_VAR_mlflow_docker_image} init-terraform: - source vars_base && cd Iac && terraform init -backend-config="bucket=$${TF_VAR_backend_bucket}" + source vars_base && cd IaC && terraform init -backend-config="bucket=$${TF_VAR_backend_bucket}" apply-terraform: - source vars_base && cd Iac && terraform apply + source vars_base && cd IaC && terraform apply plan-terraform: - source vars_base && cd Iac && terraform plan + source vars_base && cd IaC && terraform plan destroy-terraform: - source vars_base && cd Iac && terraform destroy + source vars_base && cd IaC && terraform destroy apply: init-terraform apply-terraform