Skip to content

Commit

Permalink
DO NOT MERGE: Instrument push progress
Browse files Browse the repository at this point in the history
Change-type: patch
  • Loading branch information
dfunckt committed Apr 30, 2024
1 parent 7151867 commit 83876db
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/utils/compose_ts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,16 @@ async function pushAndUpdateServiceImages(
tty,
getChalk().blue('[Push]') + ' ',
);
const reporters = progress.aggregateProgress(images.length, renderer);
function debugProgress(onProgress: (e: any) => void): (e: any) => void {
return (e) => {
console.log(JSON.stringify(e));
onProgress(e);
};
}
const reporters = progress.aggregateProgress(
images.length,
debugProgress(renderer),
);

const pushImage = async (
localImage: Dockerode.Image,
Expand Down

0 comments on commit 83876db

Please sign in to comment.