httpbin icon indicating copy to clipboard operation
httpbin copied to clipboard

Helm chart, and use alpine image.

Open JanRK opened this issue 5 years ago • 7 comments

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

JanRK avatar Dec 04 '19 11:12 JanRK

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.

mhamann avatar Dec 04 '19 16:12 mhamann

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

JanRK avatar Jan 17 '20 08:01 JanRK

I'm seeing that the travis checks has failed. Did you check if its this PR breaking them or were they broken before?

bergerx avatar Jan 17 '20 11:01 bergerx

Hi, I'm in need of a helm chart for httpbin so happy to test if you have it.

Adam

23ewrdtf avatar Mar 10 '20 10:03 23ewrdtf

The chart is here https://github.com/JanRK/httpbin/tree/master/charts/httpbin

JanRK avatar Mar 10 '20 12:03 JanRK

@mhamann do you mind taking another look into this one?

bergerx avatar Mar 10 '20 13:03 bergerx

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.

pklaus avatar Jul 20 '20 14:07 pklaus