Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce docker build context size during elastic-agent packaging #4446

Open
pchila opened this issue Mar 20, 2024 · 2 comments
Open

Reduce docker build context size during elastic-agent packaging #4446

pchila opened this issue Mar 20, 2024 · 2 comments
Labels
chore Tasks that just need to be done, they are neither bug, nor enhancements Team:Elastic-Agent Label for the Agent team Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Comments

@pchila
Copy link
Member

pchila commented Mar 20, 2024

Describe the enhancement:
We should reduce the amount of data we send to the docker daemon when packaging the agent.
At the time of writing we are sending ~2.5GB as docker context during the build of elastic-agent binaries. We can probably add a few entries in a .dockerignore file to exclude anything that is not needed during the docker build.
For packaging entire docker image builds we should use volume mounts to pass along big build artifacts so we should be able to reduce the context size in that case as well

Describe a specific use case for the enhancement or feature:
Running mage package
What is the definition of done?
Only necessary files are included in docker contexts when running a container during mage package

@pchila pchila added Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team Team:Elastic-Agent Label for the Agent team chore Tasks that just need to be done, they are neither bug, nor enhancements labels Mar 20, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent (Team:Elastic-Agent)

@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Tasks that just need to be done, they are neither bug, nor enhancements Team:Elastic-Agent Label for the Agent team Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

No branches or pull requests

2 participants