mirror of
https://github.com/itzg/mc-router.git
synced 2024-11-25 12:05:14 +01:00
docs: add development notes
This commit is contained in:
parent
5006505836
commit
841e49ec0e
22
README.md
22
README.md
@ -88,3 +88,25 @@ kubectl apply -f https://raw.githubusercontent.com/itzg/mc-router/master/docs/k8
|
|||||||
* This deployment assumes two persistent volume claims: `mc-stable` and `mc-snapshot`
|
* This deployment assumes two persistent volume claims: `mc-stable` and `mc-snapshot`
|
||||||
* I extended the allowed node port range by adding `--service-node-port-range=25000-32767`
|
* I extended the allowed node port range by adding `--service-node-port-range=25000-32767`
|
||||||
to `/etc/kubernetes/manifests/kube-apiserver.yaml`
|
to `/etc/kubernetes/manifests/kube-apiserver.yaml`
|
||||||
|
|
||||||
|
# Development
|
||||||
|
|
||||||
|
## Building locally with Docker
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run -it --rm \
|
||||||
|
-v gopkg:/go/pkg \
|
||||||
|
-v ${PWD}:/build -w /build \
|
||||||
|
golang:1.12 \
|
||||||
|
go build ./cmd/mc-router
|
||||||
|
```
|
||||||
|
|
||||||
|
## Performing snapshot release with Docker
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run -it --rm \
|
||||||
|
-v ${PWD}:/build -w /build \
|
||||||
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
|
goreleaser/goreleaser \
|
||||||
|
release --snapshot --rm-dist
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user