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

feat(vscode): Support VSCode remote ssh plugins #54

Merged
merged 2 commits into from
Apr 25, 2022
Merged

feat(vscode): Support VSCode remote ssh plugins #54

merged 2 commits into from
Apr 25, 2022

Conversation

gaocegege
Copy link
Member

@gaocegege gaocegege commented Apr 24, 2022

  • Download the plugin publish.extensionname-version.vsix into the host $HOME/.midi/cache
  • Unzip the extension
  • Copy the unzipped extension into the llb.Scratch()
  • Merge it into the image

Fix #18
Ref #51

build.MIDI Show resolved Hide resolved
Signed-off-by: Ce Gao <cegao@tensorchord.ai>
@gaocegege gaocegege changed the title feat(vscode): Support plugins WIP feat(vscode): Support plugins Apr 25, 2022
@gaocegege gaocegege changed the title feat(vscode): Support plugins feat(vscode): Support VSCode remote ssh plugins Apr 25, 2022
Signed-off-by: Ce Gao <cegao@tensorchord.ai>
Copy link
Member

@VoVAllen VoVAllen left a comment

Choose a reason for hiding this comment

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

LGTM

}
ext := llb.Scratch().File(llb.Copy(llb.Local(flag.FlagCacheDir),
vscodeClient.PluginPath(p),
"/root/.vscode-server/extensions/"+p.String(),
Copy link
Member

Choose a reason for hiding this comment

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

Not sure whether we should choose /root/ as the default directory. What's the common practise for the user when using docker? Does people use root or create other users?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah. I do not think it is a good practice to use root. We should manage the attack surface. I will open an issue to keep track of the problem.

@gaocegege gaocegege merged commit d995c1b into main Apr 25, 2022
@gaocegege gaocegege deleted the vscode branch April 26, 2022 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

feat(lang): Support VSCode
2 participants