mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
Merge pull request #6392 from dchen1107/master
Build etcd image (version: 2.0.8) and push it to gcr.io
This commit is contained in:
commit
51e2518e36
5
cluster/images/etcd/Dockerfile
Normal file
5
cluster/images/etcd/Dockerfile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
FROM scratch
|
||||||
|
MAINTAINER Dawn Chen <dawnchen@google.com>
|
||||||
|
|
||||||
|
ADD ./etcd /usr/local/bin/etcd
|
||||||
|
ADD ./etcdctl /usr/local/bin/etcdctl
|
20
cluster/images/etcd/Makefile
Normal file
20
cluster/images/etcd/Makefile
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
.PHONY: clean build push
|
||||||
|
|
||||||
|
IMAGE = etcd
|
||||||
|
TAG = 2.0.8
|
||||||
|
OUTPUT_DIR = $(IMAGE)-v$(TAG)-linux-amd64
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf $(OUTPUT_DIR) $(IMAGE)-v$(TAG)-linux-amd64.tar.gz etcd etcdctl
|
||||||
|
|
||||||
|
build: clean
|
||||||
|
curl -L -O https://github.com/coreos/etcd/releases/download/v$(TAG)/$(IMAGE)-v$(TAG)-linux-amd64.tar.gz
|
||||||
|
tar xzvf $(IMAGE)-v$(TAG)-linux-amd64.tar.gz
|
||||||
|
cp $(OUTPUT_DIR)/etcd .
|
||||||
|
cp $(OUTPUT_DIR)/etcdctl .
|
||||||
|
docker build -t gcr.io/google_containers/$(IMAGE):$(TAG) .
|
||||||
|
|
||||||
|
push: build
|
||||||
|
gcloud preview docker push gcr.io/google_containers/$(IMAGE):$(TAG)
|
||||||
|
|
||||||
|
all: push
|
Loading…
Reference in New Issue
Block a user