~priegger/rust-hello-world

pin rust version for the docker build
set up cachix cache for nixos builds
install rustup using apk

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 -