Long Porter Publish Times #2565
-
Hey all! I'm seeing somewhere between a 4 to 5 minute time while the porter publish sits at the "Building bundle ===>" line, then it finally starts running through the docker template. Another 4 or so minutes and it finishes building and pushing the image up to our Repository. Is there anyway to speed this process up? I even have the docker template pulling an already built image so it really don't have to do much as far as any installs of software. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
Hey Sam, those are pretty long build times and not what I would expect for an image unless it was really quite large or had slow RUN commands in the Dockerfile. For reference, when I build and publish porter-hello (the output of Can you provide a copy of the output and which version of Porter you are on? With recent releases of v1 you should see the colorized progress-enabled buildkit output which isn't as great for troubleshooting. I recommend running |
Beta Was this translation helpful? Give feedback.
-
Attached is our porter publish. I scrubbed all the image names and such, but the times are the important part. You'll notice between the building bundle and the generating dockerfile, there is a very long pause. Starts at 1:15 and ends at 1:22.
The actual porter publish part and copying all the images up only takes maybe 2 minutes to complete. I appreciate all your help on this! |
Beta Was this translation helpful? Give feedback.
-
@carolynvs I wanted to post back here, cause this fix was in the latest version (1.0.13). Just ran a porter publish with it and what was taking 10-12 mins to run, took 1 minute 30 seconds to run! :-) |
Beta Was this translation helpful? Give feedback.
Thanks for confirming that how we are getting referenced image digests is the cause of that particular performance problem! I've made an issue and will get a fix out soon but it won't be in this week's release.
#2576