summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorFloppybobby <Zombay@outlook.com>2019-04-28 00:08:52 +0200
committerGitHub <noreply@github.com>2019-04-28 00:08:52 +0200
commitf9f08bb9b989ce153ffb931b82ed926ad6e6e0c3 (patch)
tree468c24ff663d92bf971c592b1915f40cb29338cb /docs
parente3a74b34802c62a3ab87d616441f9b39b7c53cdc (diff)
downloadvyos-documentation-f9f08bb9b989ce153ffb931b82ed926ad6e6e0c3.tar.gz
vyos-documentation-f9f08bb9b989ce153ffb931b82ed926ad6e6e0c3.zip
Create build-vyos.rst
Guide for Building VyOS from the Crux branch using docker
Diffstat (limited to 'docs')
-rw-r--r--docs/build-vyos.rst79
1 files changed, 79 insertions, 0 deletions
diff --git a/docs/build-vyos.rst b/docs/build-vyos.rst
new file mode 100644
index 00000000..a6cc57bc
--- /dev/null
+++ b/docs/build-vyos.rst
@@ -0,0 +1,79 @@
+.. _build:
+
+Building VyOS using Docker
+==========================
+
+This will guide you though the process of building a VyOS ISO yourself using Docker and works best on a fresh installation of Debain 9 (Stretch).
+
+.. note:: Starting with VyOS 1.2 the developers have decided to change their release model.
+ VyOS is now **free as in speech, but not as in beer**, meaning that while VyOS is still an open source project, the release ISO's are no longer free and can only be obtained via subscription, or by contributing to the community.
+ Since the source code is still public you can build your own ISO using the process described here.
+
+
+Installing Docker and it's prequisites
+
+.. code-block:: sh
+
+ root@build:~$ apt update
+ root@build:~$ apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common
+ root@build:~$ curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
+ root@build:~$ add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
+ root@build:~$ apt update
+ root@build:~$ apt install docker-ce
+
+
+Adding you user to the docker group to be able to execute the docker command without sudo
+
+.. code-block:: sh
+
+ root@build:~$ usermod -aG docker user
+
+.. note:: It is recommended to use a non-root user from here on out
+
+
+Cloning the vyos-build crux branch and creating the docker container
+
+.. code-block:: sh
+
+ user@build:~$ git clone -b crux --single-branch https://github.com/vyos/vyos-build.git
+ user@build:~$ cd vyos-build
+ user@build:~/vyos-build$ docker build -t vyos-builder docker
+
+
+Running the container and building the ISO
+
+
+.. code-block:: sh
+
+ user@build:~$ docker run --rm -it --privileged -v $(pwd):/vyos -w /vyos vyos-builder bash
+ root@d4220bb519a0:/vyos# ./configure --architecture amd64 --build-by "your@email.tld" --build-type release --version 1.2.0
+
+
+You may use these options to customize you ISO
+
+.. code-block:: sh
+
+ -h, --help show this help message and exit
+ --architecture ARCHITECTURE
+ Image target architecture (amd64 or i586 or armhf)
+ --build-by BUILD_BY Builder identifier (e.g. jrandomhacker@example.net)
+ --custom-package CUSTOM_PACKAGES
+ Custom packages to install from repositories
+ --build-type BUILD_TYPE
+ Build type, release or development
+ --debian-security-mirror DEBIAN_SECURITY_MIRROR
+ Debian security updated mirror
+ --version VERSION Version number (release builds only)
+ --debian-mirror DEBIAN_MIRROR
+ Debian repository mirror for ISO build
+ --vyos-mirror VYOS_MIRROR
+ VyOS package mirror
+ --pbuilder-debian-mirror PBUILDER_DEBIAN_MIRROR
+ Debian repository mirror for pbuilder env bootstrap
+ --debug Enable debug output
+ --custom-apt-entry CUSTOM_APT_ENTRY
+ Custom APT entry
+ --custom-apt-key CUSTOM_APT_KEY
+ Custom APT key file
+
+*Your freshly built ISO should now be in the build directory. Good luck!*