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

Build slimmer Docker images. #7

Merged
merged 1 commit into from
Mar 17, 2016
Merged

Build slimmer Docker images. #7

merged 1 commit into from
Mar 17, 2016

Conversation

blueimp
Copy link
Contributor

@blueimp blueimp commented Mar 17, 2016

This is a proposed change to build slimmer Docker images while retaining all original functionality.

The size savings are as following:

  • Debian image: 379.7 MB => 287.2 MB
  • Alpine image: 146 MB => 88.68 MB

Additionally, the new Dockerfiles also include the following changes:

Thanks for your consideration.

Add tini as docker entrypoint - see krallin/tini#8
Use exec to start the the run script and sematext-agent-docker to avoid unnecessary shell processes.
megastef added a commit that referenced this pull request Mar 17, 2016
Build slimmer Docker images.
@megastef megastef merged commit dd67a8b into sematext:master Mar 17, 2016
@megastef
Copy link
Contributor

https://hub.docker.com/r/sematext/sematext-agent-docker/builds/ - build for "dev" image (debian) is running now.

@megastef
Copy link
Contributor

Thank you for the contribution. Everything seems to work. Tagged with 1.29.31 and latest on Docker Hub.

@blueimp
Copy link
Contributor Author

blueimp commented Mar 17, 2016

Thanks!

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