From 71891a7901fa88a84bf20c2dc68dab5a599f96c3 Mon Sep 17 00:00:00 2001 From: Gleb Novikov Date: Sun, 27 Sep 2020 16:46:05 +0300 Subject: [PATCH] Added docker section to readme --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 1ca5b5a..ed24184 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,19 @@ This script uses [ChromeDriver](chromedriver.chromium.org) to automate the Googl The script will automatically try to download and use the appropriate chromedriver distribution for your OS and Chrome version. If this doesn't work, download the right version for you from https://chromedriver.chromium.org/downloads and use the `--chromedriver` argument to specify its path at runtime. +### Docker support + +There is a Docker support also. To build a container and to render the page run: +```bash +# Build container with loconotion +$ docker-compose build loconotion + +# Run loconotion renderer with any arguments +$ docker-compose run loconotion PATH_TO_NOTION_FILE [ARGS] +``` + +Docker container is built from `python:3.8` tag, there is google-chrome-stable and chromedriver installed. See more in [docker/Dockerfile](docker/Dockerfile). + ## Simple Usage `python loconotion https://www.notion.so/The-perfect-It-s-Always-Sunny-in-Philadelphia-episode-d08aaec2b24946408e8be0e9f2ae857e`