Skip to content
/ go.noisy Public

This project is a container that randomically write logs to stdout and stderr

License

Notifications You must be signed in to change notification settings

Ppamo/go.noisy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go.noisy

This project is basically a docker image that contains a small binary application that write logs randomically every 12 seconds max, to stdout or stderr.

This project was generated as a tool to test log systems in Kubernetes.

Usage:

linux:

[FORCEIMAGEBUILD=1] [GOPATH=/path/to/go] bash run.sh

cygwin:

[FORCEIMAGEBUILD=1] GOPATH=/c/Users/myuser/go bash run.sh

The script run.sh calls the script build.sh, this one runs a container based on docker.io/golang:1.9.2 to build the application, mounting the GOPATH path as a volume to read the code and write the binary file.

Once the binary is generated, a new docker image is built from scratch, that contains only the application binary. After the image is created the script runs a container.

If the md5sum from the binary does not change after the compilation, and the a docker image already exists, a new image is not built, but you can force the regeneration by setting FORCEIMAGEBUILD=1.

In cygwin the GOPATH variable should be compatible with boot2docker, so it should not contains the "/cygdrive" prefix and should be in "/c/Users/" since there is a default shared folder in virtualbox for this path.

About

This project is a container that randomically write logs to stdout and stderr

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published