Publish a Service
This example publishes a minimal HTTP service from a runtime.
Create a runtime and publish runtime port 8080 over
HTTPS. The public subdomain is based on the runtime UUID, not the display name.
runta run --name demo --cpus 2 --memory 2048 -p '8080/https'Find the runtime ID:
runta ps -aOpen a shell in the runtime:
runta exec -it demo bashInside the runtime, start a simple HTTP server on port 8080:
python3 -m http.server 8080From your local machine, verify the published service:
curl https://<runtime_id>.runta.devReplace <runtime_id> with the UUID shown in the ID column from runta ps -a.
Port-qualified URLs such as https://<runtime_id>.runta.dev:8080 are not
supported yet.