munnerz / kube-plex

Scalable Plex Media Server on Kubernetes -- dispatch transcode jobs as pods on your cluster!
Apache License 2.0
1.23k stars 191 forks source link

Can we have an arm build #19

Open jengo opened 6 years ago

jengo commented 6 years ago

I was going to do it my self, but the build instructions are missing and I am not fully sure exactly how you build this project. Ideally, it would be best to provide a multi-architecture docker image.

archite commented 6 years ago
CGO_ENABLED=0 GOOS=linux GOOARCH=arm go build -a -installsuffix cgo -o kube-plex_linux_arm github.com/munnerz/kube-plex
sed -e 's@alpine:3.6@arm32v6/alpine@' -e 's@kube-plex_linux_amd64@kube-plex_linux_arm@' Dockerfile | docker build -t munnerz/kube-plex-arm -f - .
mauroniewolskicesca commented 5 years ago

I forked the project, modified it and now using it on my arm64 device https://github.com/mauroniewolskicesca/kube-plex-arm64

gclawes commented 4 years ago

With the Raspberry Pi 4 out it'd be great to have an official arm64 image.

jantznick commented 4 years ago

Is there any thought of doing this? I thought I saw somewhere before you can just update the download file but I don't remember if that was this build or a different one and can't find it again.

JoseThen commented 4 years ago

Using @archite 's comment I was able to build for ARM, I'll post here later this week more info, wouldn't be a bad PR for this repo!

jantznick commented 4 years ago

@JoseThen Wasn't understanding that comment at first, so it basically replaces the version of plex being pulled in the Docker file?

JoseThen commented 4 years ago

@JoseThen Wasn't understanding that comment at first, so it basically replaces the version of plex being pulled in the Docker file?

Yes, it first does a different arch build with Go and changes the image name in the dockerfile, I have time I'll post again later today

JoseThen commented 4 years ago

For those looking I forked this repositoryand switched it to build for ARM, you can see the main diff here: https://github.com/munnerz/kube-plex/compare/master...JoseThen:master

I have it set to push to my own docker registry. I recommend building this out on your own, because its a great learning process.

o4fr commented 4 years ago

For those looking I forked this repositoryand switched it to build for ARM, you can see the main diff here: master...JoseThen:master

I have it set to push to my own docker registry. I recommend building this out on your own, because its a great learning process.

Great work @JoseThen. Does it also work for arm64 e.g. Raspberry Pi 4?

gclawes commented 3 years ago

Any update on this?