Aucune description

Makefile 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. .DEFAULT_GOAL := help
  2. file := $2
  3. IN_DIR = $(PWD)
  4. .PHONY: help
  5. help: ## Print the help message
  6. @awk 'BEGIN {FS = ":.*?## "} /^[0-9a-zA-Z_-]+:.*?## / {printf "\033[36m%s\033[0m : %s\n", $$1, $$2}' $(MAKEFILE_LIST) | \
  7. sort | \
  8. column -s ':' -t
  9. .PHONY: create
  10. create: ## Create the iris app
  11. kubectl apply -k $(IN_DIR)/admin; \
  12. kubectl apply -k $(IN_DIR)/rabbitmq; \
  13. kubectl apply -k $(IN_DIR)/psql; \
  14. kubectl apply -k $(IN_DIR)/app; \
  15. kubectl apply -k $(IN_DIR)/worker
  16. .PHONY: delete
  17. delete: ## Delete the iris app
  18. kubectl delete -k $(IN_DIR)/worker ;\
  19. kubectl delete -k $(IN_DIR)/app ;\
  20. kubectl delete -k $(IN_DIR)/rabbitmq ;\
  21. kubectl delete -k $(IN_DIR)/psql ;\
  22. kubectl delete -k $(IN_DIR)/admin
  23. .PHONY: deploy-specific-kustomization
  24. deploy-specific-kustomization: ## Delpoy specific kustomization (ex- make deploy-specific-kustomization ARGS="path of kustomization.yml dir")
  25. kubectl apply -k $(ARGS)
  26. .PHONY: delete-specific-kustomization
  27. delete-specific-kustomization: ## Delete specific kustomization (ex- make delete-specific-kustomization ARGS="path of kustomization.yml dir")
  28. kubectl delete -k $(ARGS)
  29. .PHONY: deploy-specific-manifest
  30. deploy-specific-manifest: ## deploy specific manifest (ex- make deploy-specific-manifest ARGS="path of manifest dir")
  31. kubectl apply -f $(ARGS)
  32. .PHONY: delete-specific-manifest
  33. delete-specific-manifest: ## delete specific manifest (ex- make delete-specific-manifest ARGS="path of manifest dir")
  34. kubectl apply -f $(ARGS)