~priegger/rust-hello-world

update rocket_prometheus to 0.10.1
update rocket to 0.5.0
update to rust 1.73

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~priegger/rust-hello-world
read/write
git@git.sr.ht:~priegger/rust-hello-world

You can also use your local clone with git send-email.

#rust-hello-world

A simple hello-world rust service with prometheus metrics.

#Building and running the docker image

#Using nix

docker load < $(nix-build ci.nix -A docker-image)
docker run --rm -it -p 8000 --name rust-hello-world-nix rust-hello-world:dev-nix
docker export rust-hello-world-nix | tar tf -

#Using the Dockerfile

docker build -t rust-hello-world:dev-alpine .
docker run --rm -it -p 8000 --name rust-hello-world-alpine rust-hello-world:dev-alpine
docker export rust-hello-world-alpine | tar tf -