summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJernej Jakob <jernej.jakob@gmail.com>2019-12-13 02:53:07 +0100
committerJernej Jakob <jernej.jakob@gmail.com>2019-12-13 02:53:07 +0100
commit630543dcf829c94c9bd2691ee53f227bc61afe8c (patch)
tree062c7e3c91461554fd0a1f4ce3e1c6cdc9f9b4c1 /README.md
parent7b47b452ce86a9479b38d169f288c5eb585d5f2c (diff)
downloadvyos-build-630543dcf829c94c9bd2691ee53f227bc61afe8c.tar.gz
vyos-build-630543dcf829c94c9bd2691ee53f227bc61afe8c.zip
README: add note about building a package from a custom repo (fork)
Diffstat (limited to 'README.md')
-rw-r--r--README.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/README.md b/README.md
index bc0b616a..419235d7 100644
--- a/README.md
+++ b/README.md
@@ -253,6 +253,30 @@ building `vyos-strongswan` and can be ignored on other packages.
**NOTE:** `vyos-strongswan` will only compile on a Linux system, running on macOS
or Windows might result in a unittest deadlock (it never exits).
+#### Building single packages from your own repositories
+
+You can also build packages that are not from the default git repositories,
+for example from your own forks of the official vyos repositories.
+
+First create a directory "packages" at the top level of the vyos-build repository
+and clone your package into it (creating a subdirectory with the package contents).
+Then checkout the correct branch or commit you want to build before building the package.
+
+```bash
+$ mkdir packages
+$ cd packages
+$ git clone git@github.com:myname/vyos-1x.git
+$ cd vyos-1x
+$ git checkout equuleus
+$ cd ../..
+$ docker run --rm -it -v $(pwd):/vyos -w /vyos/packages/PACKAGENAME \
+ --sysctl net.ipv6.conf.lo.disable_ipv6=0 \
+ vyos-builder scripts/build-packages -b vyos-1x
+```
+
+**NOTE:** you need to git pull manually after you commit to the remote and before rebuilding,
+the local repository won't be updated automatically.
+
# Development process
## Git branches