The application logs a message every second, which includes the
current value of the ENVIRONMENT
environment variable.
You can download, build and run the application with the following command:
nix run github:origoss/logstream
zig build
The binary is generated in ./zig-out/bin/
.
nix build
The binary is generated in ./result/bin/
.
nix build .#docker-image
The image is generated in ./result
. You can load it with:
docker load < result
Then you can run the image:
docker run --rm -t logstream:latest
You can push the image using the push-image
script. But first, you
have to define the GH_PAT_TOKEN
environment variable. It shall
contain a valid GitHub Personal Access token with write:packages
and
read:packages
scopes.
export GH_PAT_TOKEN="ghp_dMlj4..."
push-image