@@ -53,9 +53,6 @@ common_mounts = -v $(build_path)/.config/gcloud:/root/.config/gcloud \
5353 -v $(KUBEPATH ) :/root/.kube \
5454 -v $(agones_path ) :$(mount_path )
5555
56- # Use a hash of the Dockerfile for the tag, so when the Dockerfile changes,
57- # it automatically rebuilds
58- build_version := $(shell sha256sum $(build_path ) /build-image/Dockerfile | head -c 10)
5956build_tag = agones-build:$(build_version )
6057build_remote_tag = $(REGISTRY ) /$(build_tag )
6158controller_tag = $(REGISTRY ) /agones-controller:$(VERSION )
@@ -76,7 +73,7 @@ ifneq ($(findstring Microsoft,$(shell uname -r)),)
7673else ifeq ($(uname),Linux)
7774 osinclude := linux.mk
7875else ifeq ($(uname),Darwin)
79- osinclude := osx .mk
76+ osinclude := macos .mk
8077endif
8178
8279include ./includes/$(osinclude )
@@ -112,9 +109,10 @@ install: ALWAYS_PULL_SIDECAR := true
112109install : IMAGE_PULL_POLICY := "Always"
113110install : ensure-build-image
114111 cp $(build_path ) /install.yaml $(build_path ) /.install.yaml
115- sed -i -e ' s!$${REGISTRY}!$(REGISTRY)!g' -e ' s!$${VERSION}!$(VERSION)!g' \
116- -e ' s!$${IMAGE_PULL_POLICY}!$(IMAGE_PULL_POLICY)!g' -e ' s!$${ALWAYS_PULL_SIDECAR}!$(ALWAYS_PULL_SIDECAR)!g' \
117- $(build_path ) /.install.yaml
112+ sed -i -e ' s!$${REGISTRY}!$(REGISTRY)!g' $(build_path ) /.install.yaml
113+ sed -i -e ' s!$${VERSION}!$(VERSION)!g' $(build_path ) /.install.yaml
114+ sed -i -e ' s!$${IMAGE_PULL_POLICY}!$(IMAGE_PULL_POLICY)!g' $(build_path ) /.install.yaml
115+ sed -i -e ' s!$${ALWAYS_PULL_SIDECAR}!$(ALWAYS_PULL_SIDECAR)!g' $(build_path ) /.install.yaml
118116 docker run --rm $(common_mounts ) $(DOCKER_RUN_ARGS ) $(build_tag ) kubectl apply -f $(mount_path ) /build/.install.yaml
119117
120118# Build a static binary for the gameserver controller
@@ -258,8 +256,8 @@ clean-gcloud-config:
258256# Switches to an "agones" profile, and starts a kubernetes cluster
259257# of the right version.
260258#
261- # Use MINIKUBE_DRIVER variable to change the VM driver
262- # (defaults virtualbox for Linux and OSX , hyperv for windows) if you so desire.
259+ # Use MINIKUBE_DRIVER variable to change the VM driver
260+ # (defaults virtualbox for Linux and macOS , hyperv for windows) if you so desire.
263261minikube-test-cluster : minikube-agones-profile
264262 $(MINIKUBE ) start --kubernetes-version v1.8.0 --vm-driver $(MINIKUBE_DRIVER )
265263 $(MAKE ) minikube-post-start
0 commit comments