elastic / elastic/beats

consolidate download logic when packaging docker images

Open Beginner friendly
#44,062 2 comments 1 reaction 0 assignees View on GitHub
enhancement Stalled Team:Elastic-Agent-Data-Plane
Dominant language
Go
Stars
12.7k
Forks
5k
Avg merge
2d 1h
Merged PRs (30d)
370

Description

**Describe the enhancement:**

`dev-tools/packaging/templates/docker/Dockerfile.tmpl` we have multiple instances where we `apk/microdf update` then add one or two packages then `apk/microdnf clean`. It would be more efficient to build one large list of all the packages that need to be installed and just do one round of update, install, clean.

Contributor guide

Open the contributing guide

Research direction

Open dev-tools/packaging/templates/docker/Dockerfile.tmpl and locate each apk/microdnf update, package installation, and clean sequence. Consolidate the package lists so the template performs one update, install, and clean cycle for the Docker image packaging steps; compare the resulting template with the existing sequences to confirm no packages are omitted.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
build-system
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.