httpbin
httpbin copied to clipboard
Helm chart, and use alpine image.
Added a helm chart for easy deploy in Kubernetes.
Changed Dockerfile to use alpine image, and made it multistage. Also changed dockerfile to be able to run without root and on a readonly filesystem.
Image size: Multistage : 63.3MB Alpine : 68.5MB Normal : 238.2MB
This looks really good, @JanRK. Thanks for doing this work!
Ideally, we could get this into the "official" helm repo at some point, but this'll definitely work for now.
+1 for use of alpine.
Would you mind moving/renaming the chart directory as this:
helmchart
-->charts/httpbin
. As per https://helm.sh/docs/topics/chart_best_practices/conventions/#chart-names :The directory that contains a chart MUST have the same name as the chart. Thus, the chart nginx-lego MUST be created in a directory called nginx-lego/. This is not merely a stylistic detail, but a requirement of the Helm Chart format.
Fixed
I'm seeing that the travis checks has failed. Did you check if its this PR breaking them or were they broken before?
Hi, I'm in need of a helm chart for httpbin so happy to test if you have it.
Adam
The chart is here https://github.com/JanRK/httpbin/tree/master/charts/httpbin
@mhamann do you mind taking another look into this one?
What a pity the project is inactive at the moment.
I like the updates on the Dockerfile (don't care too much about Helm, although I also intend to deploy to Kubernetes).
I cloned the branch from this pull request (HEAD currently at commit 5b0a7bb) and built a multi-arch image using docker buildx build -t pklaus/mods:httpbin --platform "linux/amd64,linux/386,linux/arm64,linux/arm/v7" --pull --push .
The Docker Image can be found on the Docker Hub if anyone wants to save the step of building it from scratch.