Skip to content

Reduce periphery image size#82

Merged
mbecker20 merged 3 commits intomoghtech:mainfrom
neicureuil:feature/small-periphery
Sep 21, 2024
Merged

Reduce periphery image size#82
mbecker20 merged 3 commits intomoghtech:mainfrom
neicureuil:feature/small-periphery

Conversation

@neicureuil
Copy link
Copy Markdown
Contributor

@neicureuil neicureuil commented Sep 14, 2024

Periphery Image Size Optimization

The original image was approximately 700 MB, which I believe can be significantly reduced. For comparison, the Portainer agent image is around 200 MB.

To achieve this reduction, I refactored the base image to use Alpine instead of Debian-slim, including only the necessary dependencies.

After that I got an image around 150 MB.

All functionality appears to remain consistent with the previous image.

I have do some tests :

  • Deploy and Remove a stack
  • Build an image from a repository
  • Prune system images
  • Read some containers logs
  • Prune volumes

image

Copy link
Copy Markdown
Member

@mbecker20 mbecker20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! You are right, no reason for such a large image. The binary itself is just 13 MB.

I'll do some testing as well but I have a feeling this will work fine 😄. And I'll get it merged for upcoming 1.14.3. Thanks for the PR!

@mbecker20 mbecker20 merged commit 3236302 into moghtech:main Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants