2
0
mirror of https://github.com/Y2Z/monolith synced 2024-11-05 06:01:10 +00:00

Merge pull request #133 from Y2Z/docker-instructions

Move Docker instructions under docs/
This commit is contained in:
Sunshine 2020-03-18 00:42:40 -04:00 committed by GitHub
commit a653bbe7d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 1 deletions

View File

@ -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)
---------------------------------------------------

15
docs/containers.md Normal file
View File

@ -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`