From b8009471512fa4d4905f49f1de789ade01da3560 Mon Sep 17 00:00:00 2001 From: Sunshine Date: Sat, 14 Mar 2020 12:51:05 -0400 Subject: [PATCH] move Docker instructions into docs/ --- README.md | 2 +- docs/containers.md | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 docs/containers.md diff --git a/README.md b/README.md index 010da95..b9d5be2 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ If compared to saving websites with `wget -mpk`, this tool embeds all assets as $ snap install monolith #### Via Docker -The guide can be found [here](https://github.com/Y2Z/monolith/wiki/Using-containers) +The guide can be found [here](docs/containers.md) --------------------------------------------------- diff --git a/docs/containers.md b/docs/containers.md new file mode 100644 index 0000000..08cec96 --- /dev/null +++ b/docs/containers.md @@ -0,0 +1,15 @@ +1. Run `docker build -t y2z/monolith .` to create a Docker image + +2. Create a file named `monolith` which contains: +```sh +#!/bin/sh + +docker run --rm \ + y2z/monolith \ + monolith \ + "$@" +``` +3. Make the file executable (`chmod +x monolith`) and include it into your `$PATH` +4. Now you should be able to run a containerized build of monolith like this: +`monolith -I https://github.com > document.html` +