We are planning to add s390x support to build binaries for Prometheus. We see multi-arch support for Prometheus building binaries for IBM ppcle64.
What process do you follow to build the same? Do you have a CI setup for it?
Regards,
Duane
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
To post to this group, send email to prometheus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/d171d6bf-f9a7-48f6-8a7b-64d1abdb9571%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
> > To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
> > > To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
>
> >
>
> > >
>
> >
>
> > > To post to this group, send email to prometheus...@googlegroups.com.
>
> >
>
> > >
>
> >
>
> > > To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/d171d6bf-f9a7-48f6-8a7b-64d1abdb9571%40googlegroups.com.
>
> >
>
> > >
>
> >
>
> > > For more options, visit https://groups.google.com/d/optout.
>
> >
>
> >
>
> >
>
> > Thanks for the info.
>
> >
>
> >
>
> >
>
> > Could you elaborate a bit more?
>
> >
>
> > After modifying the .promu.yml to include support for s390x (IBM Z), should we just be running a build using make?
>
> >
>
> > Would that generate the prometheus binaries for s390x, or would we further need to make changes in the prometheus/promu and prometheus/golang-builder repositories adding support for s390x?
>
>
>
> Thanks Goutham, This is what i understood too, Any idea on how to go about testing the same?
Hi Goutham,
So I was able to build the golang-builder image locally, using the Debian:stretch (stable) docker image which does not have the crossbuild-essential-s390x package(https://packages.debian.org/search?suite=default§ion=all&arch=any&searchon=names&keywords=crossbuild-essential. Although it is available in the buster (testing) and sid (unstable) images.
I have also built the promu binary, Ran the short tests which pass.
Although 'make test' fails due to -race only supported on linux/amd64, freebsd/amd64, darwin/amd64 and windows/amd64.
Any suggestions on proceeding further?
Regards,
Duane
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
To post to this group, send email to prometheus-developers@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/81ae915b-6f91-4952-9b4b-75cb89555b24%40googlegroups.com.
My understanding is as below:
1. Build the golang-builder-base image.
2. Using the golang-builder-base image we build powerpc, arm, mips etc.
In the base dockerfile(https://github.com/prometheus/golang-builder/blob/master/1.9/base/Dockerfile#L18) golang binaries used are amd64(https://golang.org/dl/go$GOLANG_VERSION.linux-amd64.tar.gz).
For s390x I have created a dockerfile sourced FROM debian:stable(s390x/debian:stable) and installed the respective go binary for s390x, therefore not building it from the golang-builder-base image.
It gets a bit tricky now when trying to make changes to promu, i.e. for crossbuilding (https://github.com/prometheus/promu/blob/master/cmd/crossbuild.go#L139).
Im a little confused with the fact that the golang-builder images for powerpc, arm, mips etc. are built from golang-builder-base and using this same amd64 go binary.
Does it not error out with an exec-format error when used on powerpc or other platforms?
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
To post to this group, send email to prometheus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/b6ab47a5-045c-483e-9e33-3ddd578b172e%40googlegroups.com.
We have successfully been able to build golang-builder-z docker image for z(s390x), by running the same on Linux/amd64.
The only change we had to make was use debian:buster over debian:stable in the golang-builder-base image Dockerfile to include the crossbuild-essentials-s390x package that is available in debian:buster.
Any comments/suggestions/issues regarding the use of debian:buster instead of debian:stable?
Regards,
Duane
--You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.To post to this group, send email to prometheus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/4787b709-6f5e-45d5-8d47-605dcd0ed8d8%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.To post to this group, send email to prometheus-developers@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/4787b709-6f5e-45d5-8d47-605dcd0ed8d8%40googlegroups.com.For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/1536562936.local-82614ef5-a2f7-v1.4.2-f587b7b7%40getmailspring.com.To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
To post to this group, send email to prometheus-developers@googlegroups.com.
I have created 3 pull requests for all 3 repositories.
prometheus/golang-builder#53(https://github.com/prometheus/golang-builder/pull/53)
prometheus/promu#107(https://github.com/prometheus/promu/pull/107)
prometheus/prometheus#4605(https://github.com/prometheus/prometheus/pull/4605)
Let me know if any changes need to be made.
Thanks,
Duane