Skip to content

redundant dockerfile issue with build - #812

Merged
Christof Marti (chrmarti) merged 4 commits into
devcontainers:mainfrom
prathameshzarkar9:redundant-dockerfile-build-image-name
May 27, 2024
Merged

Christof Marti (chrmarti) merged 4 commits into
devcontainers:mainfrom
prathameshzarkar9:redundant-dockerfile-build-image-name

Conversation

@prathameshzarkar9

Copy link
Copy Markdown
Contributor

#791 Redundant Dockerfile required in order to push to correct repo

if --image-name is provided in the cli then it should not push to cli-generated-image. The cli should push to user provided repository.

if we pass this argument value then it is stored in the additionaImageNames parameter which is used to check the additional names are provided. if yes, then it should not use cli-generated-image accordingly modification have been incorporated.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Overall the change makes sense to me, left some comments. Thanks!

Comment thread .vscode/launch.json Resolved
Comment thread src/spec-node/containerFeatures.ts Resolved
@prathameshzarkar9
Prathamesh Zarkar (prathameshzarkar9) force-pushed the redundant-dockerfile-build-image-name branch 4 times, most recently from 9b75a1a to 16d9d10 Compare April 29, 2024 21:19
Comment thread src/test/cli.build.test.ts Resolved

@chrmarti Christof Marti (chrmarti) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the PR! Left a few comments.

Comment thread src/spec-node/containerFeatures.ts Resolved
Comment thread .vscode/launch.json Resolved
Comment thread src/test/cli.build.test.ts Resolved
Comment thread src/test/cli.build.test.ts Resolved
Comment thread src/test/cli.build.test.ts Resolved
@prathameshzarkar9
Prathamesh Zarkar (prathameshzarkar9) force-pushed the redundant-dockerfile-build-image-name branch from 9b10555 to ad05d1d Compare May 2, 2024 03:51
Comment thread src/test/cli.build.test.ts Resolved
Comment thread src/test/cli.build.test.ts Resolved
Comment thread src/test/cli.build.test.ts Resolved
Comment thread src/test/cli.build.test.ts Resolved
@prathameshzarkar9
Prathamesh Zarkar (prathameshzarkar9) force-pushed the redundant-dockerfile-build-image-name branch from ad05d1d to b80617f Compare May 6, 2024 16:07
@chrmarti

Copy link
Copy Markdown
Contributor

Prathamesh Zarkar (@prathameshzarkar9) I see you removed the test. Our hope was that we could have the test just without the --push option. Are you going to add it back? Thanks.

@prathameshzarkar9
Prathamesh Zarkar (prathameshzarkar9) force-pushed the redundant-dockerfile-build-image-name branch from 92e51fa to de4d1bf Compare May 14, 2024 06:01
@prathameshzarkar9
Prathamesh Zarkar (prathameshzarkar9) force-pushed the redundant-dockerfile-build-image-name branch from de4d1bf to f90f8a7 Compare May 15, 2024 02:40
Comment thread src/test/cli.build.test.ts Resolved
Comment thread src/test/cli.build.test.ts Resolved

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me!

Christof Marti (@chrmarti) Can you help take another peek? Thanks!

@chrmarti Christof Marti (chrmarti) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, thanks!

@chrmarti
Christof Marti (chrmarti) enabled auto-merge (squash) May 27, 2024 10:11
@chrmarti
Christof Marti (chrmarti) merged commit 6b04427 into devcontainers:main May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants