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

Optimise dockerfile layers #218

Merged

Conversation

nightvisi0n
Copy link
Contributor

The PR changes the buildup of the Dockerfiles so that the ouroboros source code is only copied after all dependencies are installed.

This results in:

  • faster builds during development, because the dependencies don't get installed everytime something in ./pyouroboros changes
  • less changes to pull when updating the image from docker hub, as the layer containing the dependencies from pip doesn't get updated at every new release (previous 6MiB <-> now a few 10KiB)

@nightvisi0n nightvisi0n force-pushed the feature_optimise-dockerfile branch 2 times, most recently from 6017d23 to fe7aa2c Compare February 15, 2019 10:50
@nightvisi0n
Copy link
Contributor Author

(Fixed some errors from flake 8)

setup.py Outdated Show resolved Hide resolved
this results in:
- faster builds during development
- less changes to pull when updating the image from docker hub
  (6MiB <-> 40KiB)

Signed-off-by: julian <dev@jneureuther.de>
@nightvisi0n
Copy link
Contributor Author

@dirtycajunrice I rebased the PR against develop, feel free to to merge! 🙂

@dirtycajunrice dirtycajunrice added the enhancement New feature or request label Feb 16, 2019
Copy link
Member

@dirtycajunrice dirtycajunrice 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!

@dirtycajunrice dirtycajunrice merged commit 6ce78ae into pyouroboros:develop Feb 16, 2019
@nightvisi0n nightvisi0n deleted the feature_optimise-dockerfile branch February 16, 2019 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants