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

feat: multi-stage builds #158

Merged
merged 4 commits into from
Jan 26, 2023
Merged

feat: multi-stage builds #158

merged 4 commits into from
Jan 26, 2023

Conversation

rokroskar
Copy link
Member

@rokroskar rokroskar commented Jan 25, 2023

This update changes the Dockerfile in the template to use multi-stage builds for the renku CLI installation and the user-defined libraries. By separating out the two stages, we make sure that changes to one do not trigger a (costly) rebuild in the other. The change requires that we set the DOCKER_BUILDKIT flag, which improves efficiency by building the stages in parallel.

Here are the test projects:

https://dev.renku.ch/projects/rokroskar/test-new-python-template-2
https://dev.renku.ch/projects/rokroskar/test-new-r-template-2
https://dev.renku.ch/projects/rokroskar/test-new-julia-template
https://dev.renku.ch/projects/rokroskar/test-new-bioc-template

Copy link
Member

@olevski olevski left a comment

Choose a reason for hiding this comment

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

One question/suggestions. Otherwise all else makes sense.

Did you have a chance to test these images in a session?

R/Dockerfile Outdated Show resolved Hide resolved
@rokroskar
Copy link
Member Author

@olevski I did check them in the session - you can try any of the projects I linked at the top.

@rokroskar rokroskar requested a review from olevski January 26, 2023 16:08
@rokroskar rokroskar merged commit 5df0ae3 into master Jan 26, 2023
@rokroskar rokroskar deleted the 000-multi-stage-build branch January 26, 2023 17:10
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