Skip to content

origoss/logstream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

The application logs a message every second, which includes the current value of the ENVIRONMENT environment variable.

Run the application

You can download, build and run the application with the following command:

nix run github:origoss/logstream

Building the application

With zig

zig build

The binary is generated in ./zig-out/bin/.

With nix

nix build

The binary is generated in ./result/bin/.

Building the container image

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

Pushing the image

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

Releases

No releases published

Packages