Giter VIP home page Giter VIP logo

Comments (8)

openshift-bot avatar openshift-bot commented on July 20, 2024

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

from imagebuilder.

openshift-bot avatar openshift-bot commented on July 20, 2024

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

from imagebuilder.

djbrown avatar djbrown commented on July 20, 2024

can a maintainer pls take a look at this?

from imagebuilder.

djbrown avatar djbrown commented on July 20, 2024

@rhatdan @TomSweeneyRedHat

from imagebuilder.

nalind avatar nalind commented on July 20, 2024

imagebuilder uploads what it needs to in order to handle ADD and COPY instructions as it goes along.

mkdir tmp
dd if=/dev/urandom of=tmp/bigfile bs=1M count=10K
touch tmp/smallfile
cat > tmp/Dockerfile << EOF
FROM busybox
ADD smallfile /
EOF
imagebuilder ./tmp
docker build ./tmp

We ended up forking the Dockerfile parser around #125 to avoid pulling in other dependencies.

from imagebuilder.

TomSweeneyRedHat avatar TomSweeneyRedHat commented on July 20, 2024

@djbrown does @nalind's comment answer your question? If so, can you close this issue?

from imagebuilder.

djbrown avatar djbrown commented on July 20, 2024

Not really, but when digging deeper to explain my problem I found a workaround/solution.
Yet this issue might still be eligible.

My original concern was build perfomance when using binary remote build.
I was using the OCP server as "docker service/host", sending my local files as docker context via oc start-build --from-dir=".".
This would upload the whole directory which took a lot of time.

In the docs under Build Inputs > Binary (Local) Source I found the --from-archive option.
This way I can improve the performance manually.

Ideally the oc command would analyze the Dockerfile definition beforehand and only upload needed files, but I think the command wasn't design for that. Is this something you would consider implementing?
If this is the wrong component/repo for this issue I will move it.
If this is an overall unreasonable request (by design) then you or I may close this issue.

P.S. Also I discovered that in moby/moby@c9ebd2f builder/dockerfile/parser/ was actually removed/replaced by moby/buildkit/frontend/dockerfile/parser/. Maybe BuildKit is more isolated and could be included with less unused dependencies.

from imagebuilder.

nalind avatar nalind commented on July 20, 2024

The logic in imagebuilder only gets called into play in the build pod once it's running; it is not called by oc start-build.

from imagebuilder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.