Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Set port on Dev Space debug #304

Open
ciacco85 opened this issue Apr 2, 2020 · 3 comments
Open

Set port on Dev Space debug #304

ciacco85 opened this issue Apr 2, 2020 · 3 comments

Comments

@ciacco85
Copy link

ciacco85 commented Apr 2, 2020

I think it's more a support request, but honestly I think it should be placed in the official docs

As stated in another issue, I can set a new port forwarding through kubectl, but I want to tell Dev Space somewhere in the yaml file "Hey ok, push the code to AKS, build it, run it, but don't choose a random port for my localhost:XXXXX, but set to one i tell you"

I've searched in Dev Space docs too, but without any succes.

I think I should set somewhere in the deployments.yaml, but not sure

@ahaeber
Copy link

ahaeber commented Apr 3, 2020

It would be nice if we could specify a default port to be used for port-forwarding in azds.yaml instead of the semi-random port number. On Linux the port number typically is stable for some time, but on Windows it seems to be random for every time you do azds up.

@YuzorMa
Copy link
Contributor

YuzorMa commented Apr 3, 2020

@ciacco85 This was posted on the thread for #270 but putting here as well:

On CLI, you can specify a local port for the port forwarding for azds up command.

Copying the help text here but you can find more information by running azds up --help.
-p|--port Ports from the dev space workload to expose locally using the format --port <local1>:<remote1> --port <local2>:<remote2>

@ciacco85
Copy link
Author

ciacco85 commented Apr 4, 2020

Thank for your hints but the point....
I wanna to put in the position to let all the developers to work on the project like...run it and that's alll!
So is there a way to run snippet inside a yml file and force the port?

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

No branches or pull requests

3 participants