Hello everyone!
I am trying to generate the packages for Filebeat version 7.10.2, specifically for amd64 and arm64 architectures, and deb and rpm package types. To do this, I ran the following command inside the Filebeat repository:
PLATFORMS=linux/amd64 make snapshot
This command should create two packages: one .deb and one .rpm. However, during the process, I encountered the following error:
1 warning found (use docker --debug to expand):
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 46)
Dockerfile:18
--------------------
16 |
17 | FROM centos:7
18 | >>> RUN yum -y --setopt=tsflags=nodocs update && yum clean all
19 |
20 | LABEL \
--------------------
ERROR: failed to solve: process "/bin/sh -c yum -y --setopt=tsflags=nodocs update && yum clean all" did not complete successfully: exit code: 1
Doing `require 'backports'` is deprecated and will not load any backport in the next major release.
Require just the needed backports instead, or 'backports/latest'.
Doing `require 'backports'` is deprecated and will not load any backport in the next major release.
Require just the needed backports instead, or 'backports/latest'.
package ran for 2m35.759903707s
Error: failed building filebeat-oss type=docker for platform=linux/amd64: failed to build docker: running "docker build -t docker.elastic.co/beats/filebeat-oss:7.10.2-SNAPSHOT build/package/filebeat-oss/filebeat-oss-linux-amd64.docker/docker-build" failed with exit code 1
make: *** [../libbeat/scripts/Makefile:487: snapshot] Error 1
Could anyone guide me on how to solve this problem or if there is any additional step missing to generate the packages correctly?
Thanks in advance!