-
Notifications
You must be signed in to change notification settings - Fork 62
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
Make it possible to access public ports within starlark #1861
Comments
Unfortunately this issue as stated isn't possible, because inside the Kurtosis cluster we have no way of resolving "whose public port?" E.g. if Tedi and I are both connected to the enclave using our CLI, and I'm also connected to the enclave using my SDK, then there are many answers to "who's public port?", and it breaks the determinism of Starlark runs. Instead, from what I understand of the referenced comment, when we have Traefik as the front door to Kurtosis clusters we could maybe provide future references in Starlark to Traefik-proxied URLs where the service will be running (and these will be less likely to change based on who's accessing). That way E.g., something like: ServiceConfig(
env_vars = {
"NEXT_PUBLIC_BEACON_BASE_URL": dependency_service.ports["http"].public_url,
}
) FWIW we've hit this situation before, with the NEAR Explorer. |
Makes sense. Definitely need to account for this use case somehow - lots of web based applications are unusable in kurtosis without it. |
Another example of this: https://discord.com/channels/783719264308953108/1131048810861314169/1226727014854033539 |
Right now I can access:
But I'm missing very much that: Also, I would need that to be available inside the |
Background & motivation
Context: ethpandaops/ethereum-package#363 (comment)
Desired behaviour
An api in starlark that exposes both private and public ports.
How important is this to you?
Painful; the lack of this feature makes using Kurtosis frictionful.
What area of the product does this pertain to?
CLI: the Command Line Interface
The text was updated successfully, but these errors were encountered: