Skip to content

Commit

Permalink
feat: change to bash the default SHELL for GNU users
Browse files Browse the repository at this point in the history
the default shell for makefiles for GNU users is sh and it does not
include the "source" command.
louispaga committed May 14, 2021
1 parent 5c5b57d commit aab056d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit aab056d

Please sign in to comment.