Fix/go14.4.6#62
Conversation
| armv5: | ||
| CC: arm-linux-gnueabi-gcc | ||
| CXX: arm-linux-gnueabi-g++ | ||
| arm64: |
There was a problem hiding this comment.
I think arm64 and armv7 can be removed since these compilers are part of different images.
| armv7: | ||
| CC: arm-linux-gnueabihf-gcc | ||
| CXX: arm-linux-gnueabihf-g++ | ||
| armv6: |
There was a problem hiding this comment.
Only the armv7 compiler should be in this file.
| @@ -1,4 +1,4 @@ | |||
| IMAGES := base main darwin arm mips ppc s390x | |||
| IMAGES := base main amd64 darwin arm armel armhf mips ppc s390x | |||
There was a problem hiding this comment.
Perhaps arm should be renamed to arm64.
There was a problem hiding this comment.
And main has effectively become the i386 image.
There was a problem hiding this comment.
We'll have to update anything that uses the images to pull the right arch flavor so I guess if we're changing one (main -> amd64) then it won't be too much to rename arm and main...?
There was a problem hiding this comment.
yes, we have to change the arch we pass when we launch the images, I start to find where this is in beats but I did not found it yet, Do you known where I have to touch to change it.
There was a problem hiding this comment.
It's at https://github.com/elastic/beats/blob/ded2e9912bb669e896b9c8d013dfabdb759023bd/dev-tools/mage/crossbuild.go#L180-L206. Journalbeat's magefile has a custom ImageSelectorFunc in order to use a different image due to debian7 + systemd issues. It will need updated too.
There was a problem hiding this comment.
We should probably make the image location configurable in Beats to allow for easier testing of the staged images (e.g. export BEATS_GOLANG_CROSSBUILD_IMAGE=docker.elastic.co/observability-ci/golang-crossbuild)
BeatsCrossBuildImage = EnvOr("BEATS_GOLANG_CROSSBUILD_IMAGE", "docker.elastic.co/beats-dev/golang-crossbuild")
|
I have checked supported architectures on CentOS, RedHat, Ubuntu, and Debian, the mips64 and ppc64 architectures are not supported by any of those distributions. On Debian, we have compilers for mips64 and ppc64 but do not have binary packages and it is not easy to prepare a bootstrap filesystem to compile all the packages we need. I think we can rid of mips64 and ppc64, these will be the supported architectures are:
@andrewkroh @urso @elastic/observablt-robots |
|
I have made a local test on how hard is to move down to Debian 8 (libc6-2.18), for amd64 and i386 is easy for the rest of the architectures we need to compile packages, I am not sure it worth it. Debian 7(libc6-2.13) need to compile a bunch of packages on any architecture. In my opinion, we can keep amd64 and i386 on Debian 8, and the rest should use Debian 9. |
Can we reduce the amount of changes we introduce here? For the 7.9 release we only need go to be updated to go1.14.6 |
|
@urso In that case, I will open another PR with only the change on the go version nothin else. the changes on this PR are the ones commented on the first comment nothing else, the images are generated with Debian 9, as they are now. |
|
@andresrc @urso @andrewkroh we have to make a decision here, Do we want to split the Docker images in single architectures or not? |
In general I'm +1 on splitting. What would be the disadvantages of doing this? |
I do not see any, the images are easy to maintain, are smaller, and you use only the one you need. |
|
+1 on splitting the images. Hopefully some of the layers can be shared between all of the images to minimize the amount of downloads/storage (but that's just an optimization and certainly not a requirement). |
|
What's the status on this? It's blocking #71, which we'd like to resolve. |
Beats will not update to go 1.15 for the 7.11 release btw. |
|
@urso @fearful-symmetry Do we need it for 7.11? if so I will update this PR. |
|
AFAICT there is no immedate need for this. |
|
Yah, I think we're looking at 7.12 for the additional OS support. |
|
superseded by #89 |
see https://www.debian.org/releases/stretch/mips/ch02s01.html.en
related to elastic/beats#19677 elastic/beats#11750