-
Notifications
You must be signed in to change notification settings - Fork 34
/
Makefile
41 lines (31 loc) · 1.25 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
.DEFAULT_GOAL := help
# If you want to manage your own custom Makefile targets, just add them to Makefile.local. This file is gitignored, so
# it won't get committed.
-include Makefile.local
#
# Variables
#
# Assuming running docker for mac k8s
KUBECTL_CONTEXT ?= docker-desktop
#help: @ List available tasks on this project
help:
@grep -h -E '[a-zA-Z\.\-]+:.*?@ .*$$' $(MAKEFILE_LIST) | sort | tr -d '#' | awk 'BEGIN {FS = ":.*?@ "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
#
# Manage the dev environment
#
#dev.skaffold: @ Start a new 'skaffold dev'
dev.skaffold: deps.bitnami
skaffold dev
#deps.bitnami: @ Configure Helm with the Bitnami repository
deps.bitnami:
helm repo add bitnami https://charts.bitnami.com/bitnami
#docker.delete-images: @ Delete omnitruck docker images
docker.delete-images:
docker images -a | grep "$(IMAGE_REGISTRY)/omnitruck" | awk '{print $$3}' | xargs docker rmi -f
#docker.deploy-registry: @ Deploy local docker registry
docker.deploy-registry:
@$(MAKE) --ignore-errors docker.uninstall-registry
docker run -d -p 5000:5000 --restart=always --name registry registry:2
#docker.uninstall-registry: @ Uninstall local docker registry
docker.uninstall-registry:
docker container stop registry && docker container rm -v registry