Skip to content

Add support for incremental builds #304

Closed

Description

@rarguello
No description provided.

Activity

  1. frenzymadness commented on Mar 19, 2019

    @frenzymadness
    Member

    Could you please provide more info? What do you mean by incremental builds and why is this important?

  2. torsava commented on Mar 19, 2019

    @torsava
    Member

    @omron93 Do we use incremental builds in other containers?

  3. pkubatrh commented on Mar 19, 2019

    @pkubatrh
    Member
  4. torsava commented on Mar 19, 2019

    @torsava
    Member

    @pkubatrh Ah, thanks. I thought the incremental build feature of s2i was kinda buggy/unfinished. So I would probably wait to see how it works out for nodejs, see if they can work out the kinks before implementing it here.

  5. omron93 commented on Mar 23, 2019

    @omron93
    Contributor

    @pkubatrh @torsava https://github.com/sclorg/golang-container supports incremental builds for some time already. I'm not aware of any problems with it. @jcajka Are you?

  6. jtratner commented on Jun 27, 2019

    @jtratner

    I think this would really help adoption. Right now, using s2i means waiting for a really slow build vs. a Dockerfile where requirements.txt would be cached.

  7. wjhrdy commented on Aug 20, 2021

    @wjhrdy

    I just found this article about how to make incremental builds work using s2i python container. https://developpaper.com/using-s2i-to-build-images-from-source-code/

  8. frenzymadness commented on Aug 23, 2021

    @frenzymadness
    Member

    So, If I understand it correctly from the node and go containers, it should work for Python container like this:

    • Users prepare their own Dockerfile, where they call the save-artifacts script which basically creates a tarball from the main virtual environment with all app dependencies already installed.
    • Then, during a second build, if the tarball is provided in /tmp/artifacts, it's extracted to the original location (virtual environment).
    • Assemble script still tries to install all dependencies but because some or ideally all of them are already there, the second build is much faster.

    Is that correct?

    I don't use s2i because it does not support podman so is there any significant difference when s2i is used and a user does not have to prepare its own dockerfile manually?

  9. frenzymadness commented on Nov 10, 2026

    @frenzymadness
    Member

    Inactive issue for years, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions