k3s/test/images/serve-hostname
Jeff Grafton ef56a8d6bb Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
..
BASEIMAGE
BUILD Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
Dockerfile
Makefile
README.md Switch to k8s.gcr.io vanity domain 2018-02-07 21:14:19 -08:00
VERSION Modify serve-hostname image to handle graceful termination 2017-10-23 14:09:32 -07:00
serve_hostname.go Modify serve-hostname image to handle graceful termination 2017-10-23 14:09:32 -07:00

README.md

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
# ---> staging-k8s.gcr.io/serve_hostname-amd64:TAG

$ make push ARCH=arm
# ---> staging-k8s.gcr.io/serve_hostname-arm:TAG

$ make push ARCH=arm64
# ---> staging-k8s.gcr.io/serve_hostname-arm64:TAG

$ make push ARCH=ppc64le
# ---> staging-k8s.gcr.io/serve_hostname-ppc64le:TAG

$ make push ARCH=s390x
# ---> staging-k8s.gcr.io/serve_hostname-s390x:TAG

Of course, if you don't want to push the images, run make all-container or make container ARCH={target_arch} instead.

Analytics

Analytics