I'm trying to build metricbeat from source code. The build process needs some docker info with running docker cmds. But I'm building it in a image and I don't want to install docker in it.
Also I just want a linux/amd64 dist and no need for docker dist.
So can I skip the docker part when build beats?
What command are you using to build Beats?
I'm using 'PLATFORMS=linux/amd64 mage package'. A interesting fact, I comment those packages in package yaml file which I don't need and build, in master branch it worked, but in v7.8.0, I still saw some log about pulling docker images and finally I got this error:
Error: running "docker run --env EXEC_UID=1001 --env EXEC_GID=121 --env GOFLAGS=-mod=vendor --rm --env MAGEFILE_VERBOSE= --env MAGEFILE_TIMEOUT= --env SNAPSHOT=false -v /home/vsts/work/1/s/beats:/go/src/github.com/elastic/beats -w /go/src/github.com/elastic/beats/metricbeat docker.elastic.co/beats-dev/golang-crossbuild:1.13.10-main-debian7 --build-cmd build/mage-linux-amd64 golangCrossBuild -p linux/amd64" failed with exit code 1
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.