Environment setup

See the Getting Started docs for how to download and log in to the CLI.

Run CLI

With the evroc CLI a user can create a Run service to run a container image on the platform.

Create a service

$ evroc run service create jptest --image registry.prod.evroclabs.net/helloworld-go --latency-goal 10
jptest creation requested

List services

$ evroc run service list

 Name     URL                                                            Ready   Reason
-------- -------------------------------------------------------------- ------- --------
 jptest   https://run-ezysua2sx5eh3ikeimmce5cwly.staging.ev-traffic.eu   True    Ready

Test a service

$ curl https://run-ezysua2sx5eh3ikeimmce5cwly.staging.ev-traffic.eu
Hello World!

Update a service

$ evroc run service update jptest --env DEBUG=”true” --latency-goal 12
jptest update requested

If you want to append via the evroc CLI e.g. add an environment variable the --append flag can be used in conjunction with the above flags.

Delete a service

$ evroc run service delete jptest
jptest deletion requested

Logs

Logs from a Service

$ evroc logs read -n jptest --since 1d --limit 2
2024-05-07T18:59:02.79889156Z stderr F 2024/05/07 18:59:02 helloworld: received a request
2024-05-07T18:59:02.922627854Z stderr F 2024/05/07 18:59:02 helloworld: received a request