This commit is contained in:
Hongchao Deng 2016-10-12 21:05:04 -07:00
Родитель e4fec1af71
Коммит 159abdde3f
2 изменённых файлов: 45 добавлений и 4 удалений

Просмотреть файл

@ -2,11 +2,9 @@ FROM golang
ADD . /go/src/github.com/coreos/kube-etcd-controller
RUN go get github.com/Masterminds/glide
RUN cd /go/src/github.com/coreos/kube-etcd-controller && \
glide install && \
go build -o kube-etcd-controller ./cmd/controller/main.go && \
mv kube-etcd-controller $GOPATH/bin/
mv kube-etcd-controller /usr/local/bin && \
rm -rf /go/*
ENTRYPOINT ["kube-etcd-controller"]

43
hack/release/README.md Normal file
Просмотреть файл

@ -0,0 +1,43 @@
Release Workflow
======
This docs describes the release process of kube-etcd-controller public docker image.
## Prerequisites
Make sure following tools are installed:
- glide
- docker
Make sure you have a quay.io account.
## Build image
Make sure your working directory is root of "kube-etcd-controller/".
Install dependency if none exists:
```
$ glide install
```
You should see "vendor/".
Build docker image
```
$ docker build --tag quay.io/coreos/kube-etcd-controller:${TAG} -f hack/release/Dockerfile .
```
`${TAG}` is the release tag. For example, "v0.0.1", "latest".
We also need to create a corresponding release on github with release note.
## Push to quay.io
Login to quay.io using docker if not done before:
```
$ docker login quay.io
```
Follow the prompts.
Push docker image to quay.io:
```
$ docker push quay.io/coreos/kube-etcd-controller:${TAG}
```
`${TAG}` is the same as above.