From 4f7540f6f8e04352cc7f3c879fa129e9abb155de Mon Sep 17 00:00:00 2001 From: Charles Teese Date: Sun, 2 Sep 2018 16:24:34 -0400 Subject: Added simpler docker instructions for linux and fixed for mac and windows (#24) --- README.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 835b687f..96957fd9 100644 --- a/README.md +++ b/README.md @@ -77,8 +77,8 @@ package build scripts will tell you. ## Building the ISO image inside a docker container Using our `Dockerfile` you can create your own Docker container that can be used -to build a VyOS ISO image. The `Dockerfile` contains some of the most used -packages needed for a VyOS build ISO process. +to build a VyOS ISO image. The `Dockerfile` contains all of the packages needed +for the VyOS build ISO process. ``` squashfs-tools # Required for squashfs file system @@ -109,9 +109,21 @@ To build the docker image: docker build -t vyos-builder $PATH_TO_Dockerfile ``` +### Linux + +To run the docker image: +``` +docker run -it --privileged -v /HOST_PATH_OF_VYOS_BUILD_REPO:/vyos -w="/vyos" vyos-builder bash +``` + +This will drop you into a bash shell with this vyos-build repo mounted at /vyos. +Then follow the instructions bellow to build the VyOS iso. + +### MacOS and Windows + To run the docker image: ``` -docker run --privileged -v /HOST_PATH/images:/vyos --name=vyos_node_builder -d vyos-builder bash +docker run -dt --privileged -v /HOST_PATH/images:/vyos --name=vyos_node_builder vyos-builder bash ``` NOTE: -- cgit v1.2.3