-
Notifications
You must be signed in to change notification settings - Fork 4
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 a client for Podman #222
base: main
Are you sure you want to change the base?
Conversation
@@ -93,7 +93,7 @@ export type ImageNameDefaults = { | |||
}; | |||
|
|||
export type CommonCommandOptions = { | |||
shellProvider?: IShell; | |||
shellProvider?: IShell; // TODO: this seems to be unused |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Do
Env?: Array<string>, | ||
ExposedPorts?: Record<string, unknown> | null; | ||
|
||
// TODO: validate these remaining properties |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Do
/** | ||
* The default argument given to `--format` | ||
*/ | ||
public readonly defaultFormatForJson: string = "{{ json . }}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: should we match the default of "{{json .}}" without the extra whitespace?
|
||
const client = new PodmanClient(); | ||
const runner = new WslShellCommandRunnerFactory({ strict: true }); | ||
const testDockerfileContext = '/mnt/d/vscode-docker-extensibility/packages/vscode-container-client/src/test/buildContext'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should use relative paths + path.resolve
to map these files.
// const client = new PodmanClient(); | ||
// const runner = new ShellStreamCommandRunnerFactory({ strict: true }); | ||
// const testDockerfileContext = 'D:\\vscode-docker-extensibility\\packages\\vscode-container-client\\src\\test\\buildContext'; | ||
// const testDockerfile = 'D:\\vscode-docker-extensibility\\packages\\vscode-container-client\\src\\test\\buildContext\\Dockerfile'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented out code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests are meant to be run locally, with some things commented in/out, so I'd prefer to keep this code. I agree though that the paths should be changed to be relative.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i.e., I want to be able to quickly switch between running the whole set of tests against Podman in WSL, vs. running them locally in Podman Desktop, by commenting out something and uncommenting something else.
Closes #221
I have tested the following end-to-end (Podman v3):
ContainersStatsCommandN/AListContextsCommandN/ARemoveContextsCommandN/AUseContextCommandN/AInspectContextsCommandN/AI have tested the following end-to-end (Podman v4 via Podman Desktop):
ContainersStatsCommandN/AListContextsCommandN/ARemoveContextsCommandN/AUseContextCommandN/AInspectContextsCommandN/AKnown issues:
https://
https://