Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --output option to devcontainer build #166

Merged
merged 16 commits into from
Oct 4, 2022
Merged

Add --output option to devcontainer build #166

merged 16 commits into from
Oct 4, 2022

Conversation

natescherer
Copy link
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 natescherer requested a review from a team as a code owner September 8, 2022 03:06
@natescherer
Copy link
Contributor Author

@microsoft-github-policy-service agree

Copy link
Contributor

@chrmarti chrmarti left a comment

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.

src/test/cli.build.test.ts Outdated Show resolved Hide resolved
src/spec-node/singleContainer.ts Outdated Show resolved Hide resolved
@natescherer
Copy link
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 natescherer changed the title Add --output-type and --output-dest to devcontainer build Add --output option to devcontainer build Sep 8, 2022
@natescherer
Copy link
Contributor Author

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

@chrmarti
Copy link
Contributor

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

@natescherer
Copy link
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
Contributor Author

@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
Contributor Author

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

chrmarti
chrmarti previously approved these changes Oct 3, 2022
Copy link
Contributor

@chrmarti chrmarti left a comment

Choose a reason for hiding this comment

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

LGTM!

@natescherer
Copy link
Contributor Author

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

src/test/cli.build.test.ts Outdated Show resolved Hide resolved
src/test/cli.build.test.ts Outdated Show resolved Hide resolved
Copy link
Member

@samruddhikhandale samruddhikhandale left a comment

Choose a reason for hiding this comment

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

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

@natescherer
Copy link
Contributor Author

natescherer commented Oct 3, 2022

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

@chrmarti chrmarti merged commit 1910ca4 into devcontainers:main Oct 4, 2022
@chrmarti
Copy link
Contributor

chrmarti commented Oct 4, 2022

@natescherer Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants