summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorrunborg <runar@13xl.com>2018-12-17 23:35:18 +0100
committerDaniil Baturin <daniil@baturin.org>2018-12-18 05:35:18 +0700
commitdfbe78ffbaa225b7e11d8e1e0e0b7d65fc9e022a (patch)
tree9f8088a6f35f38f12e7134d79ca3c9bf966c41e7 /README.md
parent7889203766a4f00eab8296ef522d451b431df34d (diff)
downloadvyos-build-dfbe78ffbaa225b7e11d8e1e0e0b7d65fc9e022a.tar.gz
vyos-build-dfbe78ffbaa225b7e11d8e1e0e0b7d65fc9e022a.zip
T1070 - docker build of vyos-strongswan (#31)
* T1070 - Added packages and readme notes about building strongswan strongswan is easely built using a docker image, but needs special options to pass tests. Added notes in the readme about building it and building instructions * T1070 - Restructured build example for wyos-strongswan
Diffstat (limited to 'README.md')
-rw-r--r--README.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/README.md b/README.md
index a3384766..8388015b 100644
--- a/README.md
+++ b/README.md
@@ -153,6 +153,23 @@ After the docker container is running you can git clone the vyos-build repositor
inside the container and follow up the bellow instructions in order to build the
VyOS ISO image
+## Building subpackages inside Docker
+### Strongswan
+
+Prior to executing this you need to checkout and update the packages/vyos-strongswan submodule
+Building the strongswan package is for now only doable on a Linux system because tests fail when running on windows and OSX systems
+`/HOST_PATH/` is the path to your vyos_build directory. if youre in the vyos-build directory it can me replaced with `$(pwd)`
+
+`--sysctl net.ipv6.conf.lo.disable_ipv6=0` is needed to enable ipv6 inside the container. tests will fail if you don't have it.
+
+```bash
+$ docker run -it -v /HOST_PATH/:/vyos --sysctl net.ipv6.conf.lo.disable_ipv6=0 vyos-builder \
+ bash -c '\
+ cd /vyos/packages/vyos-strongswan &&\
+ dpkg-buildpackage -uc -us -tc -b'
+```
+
+
## Building the ISO image
Before you can build an image, you need to configure your build.