mirror of
https://github.com/vyos/vyos-documentation.git
synced 2025-10-26 08:41:46 +01:00
Contributing/Docker: Put more detail into building instructions.
This commit is contained in:
parent
074e2c1268
commit
7a64d8cab0
@ -48,7 +48,14 @@ will ensure that the container is always up-to-date. A rebuild is triggered once
|
||||
the container changes (please note this will take 2-3 hours after pushing to
|
||||
the vyos-build repository).
|
||||
|
||||
The container can always be built directly from source:
|
||||
To download the container from DockerHub run:
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
$ docker pull vyos/vyos-build:crux # for the LTS version
|
||||
$ docker pull vyos/vyos-build:current # for the current version
|
||||
|
||||
The container can also be built directly from source:
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
@ -69,16 +76,29 @@ Build ISO
|
||||
---------
|
||||
|
||||
After the container is generated either manually or fetched from DockerHub,
|
||||
a fresh build of the VyOS ISO can begin.
|
||||
a fresh build of the VyOS ISO can begin.
|
||||
|
||||
If you pulled the image from DockerHub, you need to clone the repository to
|
||||
your local machine:
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
$ git clone -b current --single-branch https://github.com/vyos/vyos-build
|
||||
|
||||
After cloning, change directory to the ``vyos-build`` directory and run:
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
$ cd vyos-build
|
||||
$ docker run --rm -it --privileged -v $(pwd):/vyos -w /vyos vyos/vyos-build bash
|
||||
vyos_bld@d4220bb519a0:/vyos# ./configure --architecture amd64 \
|
||||
--build-by "your@email.tld" \
|
||||
--build-type release --version 1.2.0
|
||||
vyos_bld@d4220bb519a0:/vyos# sudo make iso
|
||||
|
||||
When the build is successful, the resulting iso can be found inside the ``build``
|
||||
directory.
|
||||
|
||||
.. note:: Attempting to use the docker build image on MacOS or Windows will fail
|
||||
as docker does not expose all the filesystem feature required to the container.
|
||||
Building within a VirtualBox server on Mac or Windows is however possible.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user