diff options
-rwxr-xr-x | build-iso.sh | 10 | ||||
-rw-r--r-- | readme.md | 5 |
2 files changed, 12 insertions, 3 deletions
diff --git a/build-iso.sh b/build-iso.sh index 56905af..eb5cbb6 100755 --- a/build-iso.sh +++ b/build-iso.sh @@ -87,6 +87,10 @@ function GetLatestTag { rm -rf temp-git-tag } +customPackages="vyos-1x-smoketest" +customPackages=${CUSTOM_PACKAGES:-$customPackages} +echo "Using CUSTOM_PACKAGES=$customPackages" + echo "Building the ISO..." if [ "$BRANCH" == "equuleus" ]; then LATEST=`GetLatestTag equuleus` @@ -102,7 +106,7 @@ if [ "$BRANCH" == "equuleus" ]; then --vyos-mirror http://172.17.17.17/equuleus \ --debian-elts-mirror http://172.17.17.17:3142/deb.freexian.com/extended-lts \ --custom-apt-key /opt/apt.gpg.key \ - --custom-package vyos-1x-smoketest + --custom-package "$3" docker run --rm --privileged --name="vyos-build" -v ./vyos-build/:/vyos -v "/tmp/apt.gpg.key:/opt/apt.gpg.key" -w /vyos --sysctl net.ipv6.conf.lo.disable_ipv6=0 -e GOSU_UID=$(id -u) -e GOSU_GID=$(id -g) -w /vyos vyos/vyos-build:equuleus \ sudo make iso @@ -121,14 +125,14 @@ elif [ "$BRANCH" == "sagitta" ]; then --version "$2" \ --vyos-mirror http://172.17.17.17/sagitta \ --custom-apt-key /opt/apt.gpg.key \ - --custom-package vyos-1x-smoketest + --custom-package "$3" } else >&2 echo -e "${RED}Invalid branch${NOCOLOR}" exit 1 fi -dockerBuild="DockerBuild $BUILD_BY $RELEASE_NAME" +dockerBuild="DockerBuild $BUILD_BY $RELEASE_NAME $customPackages" if ! IsFlagSet "-v" "$@"; then dockerBuild="RunWithLazyStdout \"$dockerBuild\"" fi @@ -116,6 +116,11 @@ If all went well, then all steps should complete successfully and then you can: - It asks you to specify branch equuleus or sagitta, after you do then confirm. - At least, it asks you to specify build-by, after you do then confirm and wait. This identifier is used as the `--build-by` parameter, this can be e-mail or any other identifier. + - There is also option to change what custom packages you want to include. By default, the only additional package + is `vyos-1x-smoketest`. If you want more or different custom packages + then you can override the default value via the `CUSTOM_PACKAGES` env variable, for example: + `export CUSTOM_PACKAGES="vyos-1x-smoketest emacs"`. + If you want to use this then please set this variable always before you build ISO. Now you should have the ISO(s) in current directory (`/opt/vyos-jenkins`). |