ceph-csi/vendor/k8s.io/kubernetes/test/images/serve-hostname/README.md

40 lines
1.2 KiB
Markdown
Raw Normal View History

2018-01-09 18:57:14 +00:00
## serve_hostname
This is a small util app to serve your hostname on TCP and/or UDP. Useful for testing.
The `serve_hostname` Makefile supports multiple architectures, which means it may cross-compile and build an docker image easily.
Arch-specific busybox images serve as base images.
If you are releasing a new version, please bump the `TAG` value in the `Makefile` before building the images.
## How to release:
```
# Build cross-platform binaries
$ make all-push
# Build for linux/amd64 (default)
$ make push ARCH=amd64
2018-03-06 22:33:18 +00:00
# ---> staging-k8s.gcr.io/serve_hostname-amd64:TAG
2018-01-09 18:57:14 +00:00
$ make push ARCH=arm
2018-03-06 22:33:18 +00:00
# ---> staging-k8s.gcr.io/serve_hostname-arm:TAG
2018-01-09 18:57:14 +00:00
$ make push ARCH=arm64
2018-03-06 22:33:18 +00:00
# ---> staging-k8s.gcr.io/serve_hostname-arm64:TAG
2018-01-09 18:57:14 +00:00
$ make push ARCH=ppc64le
2018-03-06 22:33:18 +00:00
# ---> staging-k8s.gcr.io/serve_hostname-ppc64le:TAG
2018-01-09 18:57:14 +00:00
$ make push ARCH=s390x
2018-03-06 22:33:18 +00:00
# ---> staging-k8s.gcr.io/serve_hostname-s390x:TAG
2018-01-09 18:57:14 +00:00
```
Of course, if you don't want to push the images, run `make all-container` or `make container ARCH={target_arch}` instead.
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/contrib/for-demos/serve_hostname/README.md?pixel)]()
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/test/images/serve_hostname/README.md?pixel)]()