agones.dev/agones@v1.54.0/build/includes/linux.mk (about) 1 # Copyright 2018 Google LLC All Rights Reserved. 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 # 16 # Include for Linux operating System 17 # 18 19 # __ __ _ _ _ 20 # \ \ / /_ _ _ __(_) __ _| |__ | | ___ ___ 21 # \ \ / / _` | '__| |/ _` | '_ \| |/ _ \ __| 22 # \ V / (_| | | | | (_| | |_) | | __\__ \ 23 # \_/ \__,_|_| |_|\__,_|_.__/|_|\___|___/ 24 # 25 26 # Get the sha for a file 27 sha = $(shell sha256sum $(1) | head -c 10) 28 29 # Get the sha of all files in a directory using wildcard in $(1) 30 sha_dir = $(shell sha256sum $(1) | cut -d' ' -f1 | sha256sum | head -c 10 ) 31 32 # Minikube executable 33 MINIKUBE ?= minikube 34 35 # _____ _ 36 # |_ _|_ _ _ __ __ _ ___| |_ ___ 37 # | |/ _` | '__/ _` |/ _ \ __/ __| 38 # | | (_| | | | (_| | __/ |_\__ \ 39 # |_|\__,_|_| \__, |\___|\__|___/ 40 # |___/ 41 42 # port forward the agones controller. 43 # useful for pprof and stats viewing, etc 44 controller-portforward: PORT ?= 8080 45 controller-portforward: DOCKER_RUN_ARGS+=--network=host 46 controller-portforward: 47 $(DOCKER_RUN) \ 48 kubectl port-forward deployments/agones-controller -n agones-system $(PORT) 49 50 # portforward prometheus web ui 51 prometheus-portforward: DOCKER_RUN_ARGS+=--network=host 52 prometheus-portforward: 53 $(DOCKER_RUN) \ 54 kubectl port-forward deployments/prom-prometheus-server 9090 -n metrics 55 56 # portforward grafana 57 grafana-portforward: DOCKER_RUN_ARGS+=--network=host 58 grafana-portforward: 59 $(DOCKER_RUN) \ 60 kubectl port-forward deployments/grafana 3000 -n metrics