mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +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
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	# Replace BASEIMAGE with the real base image
 | 
						# 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
 | 
						# And build the image
 | 
				
			||||||
	docker build -t $(REGISTRY)/etcd-$(ARCH):$(TAG) $(TEMP_DIR)
 | 
						docker build -t $(REGISTRY)/etcd-$(ARCH):$(TAG) $(TEMP_DIR)
 | 
				
			||||||
@@ -73,7 +73,7 @@ push: build
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
ifeq ($(ARCH),amd64)
 | 
					ifeq ($(ARCH),amd64)
 | 
				
			||||||
	# Backward compatibility. TODO: deprecate this image tag
 | 
						# 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)
 | 
						gcloud docker push $(REGISTRY)/etcd:$(TAG)
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user