This repository has been archived by the owner on Jul 25, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
AegisHelp.mk
88 lines (82 loc) · 3.9 KB
/
AegisHelp.mk
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#
# .-'_.---._'-.
# ||####|(__)|| Protect your secrets, protect your business.
# \\()|##// Secure your sensitive data with Aegis.
# \\ |#// <aegis.ist>
# .\_/.
#
help:
@echo "--------------------------------------------------------------------"
@echo " 🛡️ Aegis: Keep your secrets… secret."
@echo " 🛡️ https://aegis.ist"
@echo "--------------------------------------------------------------------"
@echo " ℹ️ This Makefile assumes you use Minikube and Docker"
@echo " ℹ️ for most operations."
@echo "--------------------------------------------------------------------"
@if [ "`uname`" = "Darwin" ]; then \
if type docker > /dev/null 2>&1; then \
echo " Using Docker for Mac?"; \
echo " ➡ 'make mac-tunnel' to proxy to the internal registry."; \
else \
echo " Docker is not installed on this Mac."; \
fi; \
fi
@echo ""
@if [ -z "$(DOCKER_HOST)" -o -z "$(MINIKUBE_ACTIVE_DOCKERD)" ]; then \
echo " Using Minikube? If DOCKER_HOST and MINIKUBE_ACTIVE_DOCKERD are"; \
echo ' not set, then run: eval $$(minikube -p minikube docker-env)'; \
echo " ➡ \$$DOCKER_HOST : ${DOCKER_HOST}"; \
echo " ➡ \$$MINIKUBE_ACTIVE_DOCKERD: ${MINIKUBE_ACTIVE_DOCKERD}"; \
else \
echo " Make sure DOCKER_HOST and MINIKUBE_ACTIVE_DOCKERD are current:"; \
echo ' eval $$(minikube -p minikube docker-env)'; \
echo " (they may change if you reinstall Minikube)"; \
echo " ➡ \$$DOCKER_HOST : ${DOCKER_HOST}"; \
echo " ➡ \$$MINIKUBE_ACTIVE_DOCKERD: ${MINIKUBE_ACTIVE_DOCKERD}"; \
fi
@echo "--------------------------------------------------------------------"
@echo " Prep/Cleanup:"
@echo " ˃ make k8s-delete;make k8s-start;"
@echo " ˃ make clean;"
@echo "--------------------------------------------------------------------"
@echo " Testing:"
@echo " ⦿ Istanbul images:"
@echo " ˃ make build-local;make deploy-local;make test-local;"
@echo " ⦿ Istanbul FIPS images:"
@echo " ˃ make build-local;make deploy-fips-local;make test-local;"
@echo " ⦿ Photon images:"
@echo " ˃ make build-local;make deploy-photon-local;make test-local;"
@echo " ⦿ Photon FIPS images:"
@echo " ˃ make build-local;make deploy-photon-fips-local;make test-local;"
@echo "--------------------------------------------------------------------"
@echo " Example Use Cases:"
@echo " Using local images:"
@echo " ˃ make example-sidecar-deploy-local;"
@echo " ˃ make example-sdk-deploy-local;"
@echo " ˃ make example-multiple-secrets-deploy-local;"
@echo " Using remote images:"
@echo " ˃ make example-sidecar-deploy;"
@echo " ˃ make example-sdk-deploy;"
@echo " ˃ make example-multiple-secrets-deploy;"
@echo "--------------------------------------------------------------------"
@echo " Do these at the build server only!"
@echo " Building and Remote Testing:"
@echo " ⦿ Istanbul (remote) images:"
@echo " ˃ make build;make deploy;make test-remote;"
@echo " ⦿ Istanbul FIPS (remote) images:"
@echo " ˃ make build;make deploy-fips;make test-remote;"
@echo " ⦿ Photon (remote) images:"
@echo " ˃ make build;make deploy-photon;make test-remote;"
@echo " ⦿ Photon FIPS (remote) images:"
@echo " ˃ make build;make deploy-photon-fips;make test-remote;"
@echo " Tagging:"
@echo " ˃ make tag;"
@echo "--------------------------------------------------------------------"
h:
@echo "➡ 'make mac-tunnel'";
@echo "˃ make k8s-delete;make k8s-start;"
@echo '⦿ eval $$(minikube -p minikube docker-env)';
@echo "˃ make clean;"
@echo "˃ make build-local;make deploy-local;make test-local;"
@echo "˃ make build;make deploy;make test-remote;"
@echo "˃ make tag;"