mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	make etcd makefile work on OSX
Signed-off-by: Vishnu Kannan <vishnuk@google.com>
This commit is contained in:
		@@ -63,7 +63,7 @@ else
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
	# Replace BASEIMAGE with the real base image
 | 
			
		||||
	cd $(TEMP_DIR) && sed -i "s|BASEIMAGE|$(BASEIMAGE)|g" Dockerfile
 | 
			
		||||
	cd $(TEMP_DIR) && sed -i.bak 's|BASEIMAGE|$(BASEIMAGE)|g' Dockerfile
 | 
			
		||||
 | 
			
		||||
	# And build the image
 | 
			
		||||
	docker build -t $(REGISTRY)/etcd-$(ARCH):$(TAG) $(TEMP_DIR)
 | 
			
		||||
@@ -73,7 +73,7 @@ push: build
 | 
			
		||||
 | 
			
		||||
ifeq ($(ARCH),amd64)
 | 
			
		||||
	# Backward compatibility. TODO: deprecate this image tag
 | 
			
		||||
	docker tag -f $(REGISTRY)/etcd-$(ARCH):$(TAG) $(REGISTRY)/etcd:$(TAG)
 | 
			
		||||
	docker tag $(REGISTRY)/etcd-$(ARCH):$(TAG) $(REGISTRY)/etcd:$(TAG)
 | 
			
		||||
	gcloud docker push $(REGISTRY)/etcd:$(TAG)
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user