R
Runpod5mo ago
vytskalt

Deploy a standard http server?

I have a standard http server packaged in a docker image. Can I run it inside a RunPod serverless environment?
Solution:
Soon :) We're working on something for this, I don't have a tentative date on my sheet though.
Jump to solution
6 Replies
3WaD
3WaD5mo ago
I've tested only http servers running in container's localhost context, but theoretically you should be able to get inspired by serverless websocket server to make them reachable from outside.
GitHub
worker-websocket/rp_handler.py at main · runpod-workers/worker-web...
Contribute to runpod-workers/worker-websocket development by creating an account on GitHub.
vytskalt
vytskaltOP5mo ago
So if I'm not using python I have to reimplement the runpod runtime? Are there docs for this?
3WaD
3WaD5mo ago
You just have to use handler function to start the worker, retrieve its IP and then stop it. The handler written in Python is how you interact with the worker. The thing itself running on the worker can be almost anything.
Solution
Dj
Dj5mo ago
Soon :) We're working on something for this, I don't have a tentative date on my sheet though.
Dj
Dj5mo ago
However it would let you put anything that responds to an HTTP request on a serverless worker.
Unknown User
Unknown User5mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?