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

Remove not needed files in Docker image #106

Merged
merged 1 commit into from
Sep 12, 2019

Conversation

ruflin
Copy link
Contributor

@ruflin ruflin commented Sep 12, 2019

Currently in the docker images all packages existed twice, in the dev directory which is need to build the packages and then under public. At the moment this does not amake a big difference but in the future with many packages, this would duplicate the size of the container. Because of this as a last step, the dev directory is removed.

I also took this opportunity to remove a few more files from the Docker image which are only used for testing or CI. Like this we ship an image with only the relevant files. In the future we might remove even more files like the Golang code and only ship the binary. But I keep this for a later point.

Currently in the docker images all packages existed twice, in the `dev` directory which is need to build the packages and then under `public`. At the moment this does not amake a big difference but in the future with many packages, this would duplicate the size of the container. Because of this as a last step, the dev directory is removed.

I also took this opportunity to remove a few more files from the Docker image which are only used for testing or CI. Like this we ship an image with only the relevant files. In the future we might remove even more files like the Golang code and only ship the binary. But I keep this for a later point.
@ruflin ruflin requested review from jfsiii and skh September 12, 2019 11:54
@ruflin ruflin merged commit 7104123 into elastic:master Sep 12, 2019
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