From 5768742cef62f44ae71d24809dfe48b3431d5b68 Mon Sep 17 00:00:00 2001 From: Trevor Sullivan Date: Fri, 20 Nov 2020 09:39:50 -0700 Subject: [PATCH] Add Docker instructions to README --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index e11f586..6513433 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,19 @@ or [Download .exe](https://github.com/sqshq/sampler/releases/download/v1.1.0/sampler-1.1.0-windows-amd64.exe) +### Docker + +``` +# Create a configuration file +vim config.yml + +# Build the container image +docker build --tag sampler . + +# Run a container +docker run --interactive --tty --volume $(pwd)/config.yml:/root/config.yml sampler --config /root/config.yml +``` + ## Usage You specify shell commands, Sampler executes them with a required rate. The output is used for visualization.