Skip to content
This repository was archived by the owner on Jan 17, 2021. It is now read-only.

Add ability to upload local binary #136

Merged
merged 2 commits into from
Sep 10, 2019
Merged

Conversation

deansheather
Copy link
Member

@deansheather deansheather commented Aug 23, 2019

Adds --code-server-path flag that accepts a path to a file on the local machine. It will be uploaded to the code-server path on the remote server instead of the download script being executed.

There is no verification of the local binary, so a user could upload something that isn't a code-server binary or a custom binary or something else along those lines.

This allows remote servers with no internet access to have a code-server binary uploaded to them, which is useful for extremely secure environments.

Closes #73.

@deansheather deansheather requested a review from sreya August 23, 2019 23:51
@deansheather deansheather force-pushed the upload-custom-binary branch 2 times, most recently from 096dbb2 to a6c3b5d Compare August 23, 2019 23:53
@deansheather
Copy link
Member Author

Just tested this with code-server v2 preview 9, and it just works.

@ammario
Copy link
Member

ammario commented Aug 26, 2019

How about --upload-code-server

@deansheather
Copy link
Member Author

The flag is now --upload-code-server.

@deansheather deansheather requested a review from sreya September 6, 2019 16:15
@deansheather deansheather merged commit 926191a into master Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to upload code-server binary
3 participants