Skip to content

Commit

Permalink
feat(lang): Add proposal for expose (#568)
Browse files Browse the repository at this point in the history
* feat(lang): Add proposal for serve

Signed-off-by: Qi Chen <[email protected]>

* feat(lang): Add development plan

Signed-off-by: Qi Chen <[email protected]>

* Update proposal

* Update

Signed-off-by: nullday <[email protected]>
  • Loading branch information
aseaday authored Aug 3, 2022
1 parent ace70e9 commit 84ffea3
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/proposals/20220707-service-primitive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Service Expose Support
Authors:
- [nullday](https://github.com/aseaday)

## Summary

This proposal is designed for exposing service from the application running in the envd container such as Juypter.We introduce a built-in function `expose` for achieving this goal.

## Motivation

There a lot of AI/ML SDK can be accessible from Web or GUI Client. Envd users need to configure their container to use these tools better. For example, a user want to write some code on Juypter in their Chrome.

In the future, we should also keep the possibility for remote or cloud access.

## Goals
- http/tcp
- OS support:
- Linux/Mac
- wsl access from the windows

## API
```
expose(local_port=<LPORT>, host_port=<RPORT>, svc=<SERVICE_NAME>)
```
It will bind the host port to the local port.

0 comments on commit 84ffea3

Please sign in to comment.