Finn Völkel / Jul 28 2020
Simple Service Runtime Example
Start a simple http server in the service runtime. The server will serve the files of the root directory.
This service can be used in other runtimes using python-server as host name.
You can make this service available to other runtimes by adding it to "Service Runtimes" in their runtime settings.
Script to start this runtime:
Check that everything works in the host runtime.
curl localhost:8000 > /results/directory.html
1.1s
python server (Bash)
Use the service-runtime name python-server
as hostname from other runtimes.
curl python-server:8000 > /results/directory.html
1.2s
Bash in Python