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

gp ports command #9930

Closed
loujaybee opened this issue May 11, 2022 · 10 comments
Closed

gp ports command #9930

loujaybee opened this issue May 11, 2022 · 10 comments

Comments

@loujaybee
Copy link
Member

loujaybee commented May 11, 2022

Currently, in IDE's such as JetBrains, and when SSH'ing into Gitpod it's not (yet) possible to manage your Gitpod ports (e.g. list open ports). This issue is to introduce a gp CLI command which allows a user to modify and manipulate the ports of their workspace. Ideally, in the long run, the functionality available in each of the IDE's and gp CLI is mirrored / consistent.

@loujaybee
Copy link
Member Author

Relates to: #9286

@akosyakov
Copy link
Member

The first version should be 🛹 and allow following:

List ports

gp ports list

This command should print a table of ports with following columns:

  • status: not served|failed to expose|exposing...|served
  • label: port name + number
  • visibility: public|private
  • url
  • description

Change visibility of ports

gp ports visibility <port>:{public|private}...

Example:

gp ports visibility 8000:public 3000:private

@loujaybee
Copy link
Member Author

Issue for docs: https://github.com/gitpod-io/website/issues/2178

@akosyakov
Copy link
Member

@felladrin is it resolved?

I noticed that watch gp ports does not look nice. I think @andreafalzetti has some ideas how to improve.

@felladrin
Copy link
Contributor

@felladrin is it resolved?

Not yet, I want to implement gp ports visibility before closing this issue.

I think @andreafalzetti has some ideas how to improve.

Thanks! I'll check with him.

@andreafalzetti
Copy link
Contributor

I've created a dedicated issue for watch gp ports because it's a side effect of colors and they are also used in other commands, so I think we can fix all-in-one PR.

Link to dedicated issue: #10633

@andreafalzetti
Copy link
Contributor

I've raised #10638 to fix #10633 - which solves the output issue with watch for both commands gp ports lists and gp tasks list.

@akosyakov
Copy link
Member

@loujaybee @felladrin I removed it from scheduled it for now. Since we have gp ports now and it is better to improve other aspects of JB integration.

@loujaybee
Copy link
Member Author

@akosyakov I'd suggest we extract out gp ports visibility and close this issue.

@loujaybee
Copy link
Member Author

Moved visibility behaviour to:

Will now close this issue now, thanks folks! 🙏

https://www.gitpod.io/docs/command-line-interface#ports

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

No branches or pull requests

4 participants