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

maint: Reduce docker image size #266

Merged
merged 4 commits into from Oct 4, 2023
Merged

maint: Reduce docker image size #266

merged 4 commits into from Oct 4, 2023

Conversation

MikeGoldsmith
Copy link
Contributor

@MikeGoldsmith MikeGoldsmith commented Oct 4, 2023

Which problem is this PR solving?

The docker image that is distributed with the agent installed on is quite large at 302mb.

This PR updates the dockerfile command that installs packages in the final image to not install recommended packages and just install required dependencies.

Short description of the changes

  • Update docker file to use the --no-install-recommends flag and apt-get clean when installing packages in the final image

How to verify that this has the expected result

The final image size is now 248mb which is 18% smaller.

@MikeGoldsmith MikeGoldsmith added the type: maintenance The necessary chores to keep the dust off. label Oct 4, 2023
@MikeGoldsmith MikeGoldsmith requested a review from a team as a code owner October 4, 2023 09:53
@MikeGoldsmith MikeGoldsmith self-assigned this Oct 4, 2023
@robbkidd robbkidd self-assigned this Oct 4, 2023
Dockerfile Outdated Show resolved Hide resolved
@JamieDanielson JamieDanielson merged commit 68da897 into main Oct 4, 2023
4 checks passed
@JamieDanielson JamieDanielson deleted the mike/image branch October 4, 2023 14:32
JamieDanielson pushed a commit that referenced this pull request Oct 4, 2023
## Which problem is this PR solving?
Prepares the v0.0.20-alpha release.

## Short description of the changes
- Add changelog entry
- Update agent version

**Note**: The release includes references to the following PRs that are
not merged yet:
- #259 
- #266 

I've also used the @ notation for contributor names to see if GitHub
automatically links them.

## How to verify that this has the expected result
A new release of the agent can be published.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: maintenance The necessary chores to keep the dust off.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants