Skip to content

Add --output option to devcontainer build - #166

Merged
Christof Marti (chrmarti) merged 16 commits into
devcontainers:mainfrom
natescherer:feature/add-output-options
Oct 4, 2022
Merged

Christof Marti (chrmarti) merged 16 commits into
devcontainers:mainfrom
natescherer:feature/add-output-options

Conversation

@natescherer

Copy link
Copy Markdown
Contributor

This is related to what was discussed in #155.

This PR adds new options --output-type and --output-dest that pass through to docker buildx build --output.

If there's anything that needs added or changed, please let me know!

@natescherer
Nate Scherer (natescherer) requested a review from a team as a code owner September 8, 2022 03:06
@natescherer

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

@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 for changes / discussion.

Comment thread src/test/cli.build.test.ts Resolved
Comment thread src/spec-node/singleContainer.ts Resolved
@natescherer

Copy link
Copy Markdown
Contributor Author

Both requested changes have been committed. Hopefully the test works; I was not able to get yarn test to work in my local env for reasons I couldn't quite figure out.

@natescherer Nate Scherer (natescherer) changed the title Add --output-type and --output-dest to devcontainer build Sep 8, 2022
@natescherer

Copy link
Copy Markdown
Contributor Author

Previous test failed due to unbalanced quotes, looks like. Latest commit should fix it.

@chrmarti

Copy link
Copy Markdown
Contributor

Nate Scherer (@natescherer) There are some test failures. Could you look into these? The change looks good otherwise.

@natescherer

Copy link
Copy Markdown
Contributor Author

Looks like I was using a non-Dockerfile config to try and run the test which wouldn't work. Changed it and hopefully the test will pass now!

@natescherer

Copy link
Copy Markdown
Contributor Author

Christof Marti (@chrmarti) Could you please trigger the tests again when you get a minute? Looks like they don't automatically run, probably since I'm a first-time contributor to this repo.

@natescherer

Copy link
Copy Markdown
Contributor Author

Looks like synchronizing from main caused there to be a missing comma. Last commit should fix.

@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!

@natescherer

Copy link
Copy Markdown
Contributor Author

Christof Marti (@chrmarti) Looks like the local environment on the machine running the tests was using the default docker buildx driver. Added wrapper to create a new buildx driver at the start of the test and then reset to the default driver after. Hopefully this will get that test to pass now.

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.

Nate Scherer (@natescherer) looks like there are some merge conflicts. Could you help resolve them? thanks!

@natescherer

Nate Scherer (natescherer) commented Oct 3, 2022 •

Copy link
Copy Markdown
Contributor Author

Samruddhi Khandale (@samruddhikhandale) I re-merged main with my branch, should be good now hopefully!

@chrmarti
Christof Marti (chrmarti) merged commit 1910ca4 into devcontainers:main Oct 4, 2022
@chrmarti

Copy link
Copy Markdown
Contributor

Nate Scherer (@natescherer) Merged, thanks!

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

Labels

None yet

3 participants