From 0a0e3c5ebd835a4d90f47ba47300cd1841845bbc Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 20 Apr 2019 14:16:14 +0200 Subject: Docker: update Dockerfile and description --- README.md | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 0ac09cb0..87484405 100644 --- a/README.md +++ b/README.md @@ -20,22 +20,18 @@ Required Debian Packages: ## Docker -## Create Container +Using our [Dockerfile](docker/Dockerfile) you create your own Docker container +that is used to build a VyOS documentation. + +## Setup ```bash -$ docker build -t vyos-docu - < Dockerfile +$ docker build -t vyos-docu docker ``` -### Build Documentation +### Build Linux ```bash -$ docker run -v `pwd`:`pwd` -w `pwd`/docs -i -t --rm vyos-docu bash -``` - -Windows PowerShell -```powershell -docker run -v "$($pwd.path):/vyos" -w "/vyos/docs" -i -t --rm vyos-docu bash +$ docker run --rm -it -v "$(pwd)":/vyos -w /vyos/docs -e GOSU_UID=$(id -u) -e GOSU_GID=$(id -g) vyos-docu make html ``` - -Inside the container you can then build the documentation as stated above. -- cgit v1.2.3