summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/auto-author-assign.yml2
-rw-r--r--data/architectures/amd64.toml9
-rw-r--r--data/build-types/development.toml1
-rw-r--r--data/defaults.toml5
-rwxr-xr-xdata/live-build-config/hooks/live/41-init-podman-images.chroot8
-rw-r--r--docker/Dockerfile3
-rw-r--r--packages/frr/Jenkinsfile2
-rwxr-xr-xscripts/build-vyos-image12
8 files changed, 17 insertions, 25 deletions
diff --git a/.github/workflows/auto-author-assign.yml b/.github/workflows/auto-author-assign.yml
index 81134206..a769145f 100644
--- a/.github/workflows/auto-author-assign.yml
+++ b/.github/workflows/auto-author-assign.yml
@@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Request review based on files changes and/or groups the author belongs to
- uses: shufo/auto-assign-reviewer-by-files@v1.1.1
+ uses: shufo/auto-assign-reviewer-by-files@v1.1.4
with:
token: ${{ secrets.GITHUB_TOKEN }}
config: .github/reviewers.yml
diff --git a/data/architectures/amd64.toml b/data/architectures/amd64.toml
index 02027aa6..abfec53a 100644
--- a/data/architectures/amd64.toml
+++ b/data/architectures/amd64.toml
@@ -1,3 +1,10 @@
+additional_repositories = [
+ "deb [arch=amd64] https://repo.saltproject.io/py3/debian/11/amd64/3004 bullseye main",
+ "deb [arch=amd64] http://repo.powerdns.com/debian bullseye-rec-48 main"
+]
+
+kernel_flavor = "amd64-vyos"
+
# Packages added to images for x86 by default
packages = [
"grub2",
@@ -6,5 +13,3 @@ packages = [
"vyos-intel-qat",
"telegraf"
]
-
-kernel_flavor = "amd64-vyos"
diff --git a/data/build-types/development.toml b/data/build-types/development.toml
index 31c50522..f0207a6a 100644
--- a/data/build-types/development.toml
+++ b/data/build-types/development.toml
@@ -2,7 +2,6 @@ packages = [
"gdb",
"strace",
"apt-rdepends",
- "skopeo",
"tshark",
"vim",
"vyos-1x-smoketest"
diff --git a/data/defaults.toml b/data/defaults.toml
index b14fceeb..2819b216 100644
--- a/data/defaults.toml
+++ b/data/defaults.toml
@@ -14,11 +14,6 @@ release_train = "current"
kernel_version = "5.15.77"
-additional_repositories = [
- "deb [arch=amd64] https://repo.saltproject.io/py3/debian/11/amd64/3004 bullseye main",
- "deb [arch=amd64] http://repo.powerdns.com/debian bullseye-rec-48 main"
-]
-
website_url = "https://vyos.io"
support_url = "https://support.vyos.io"
bugtracker_url = "https://phabricator.vyos.net"
diff --git a/data/live-build-config/hooks/live/41-init-podman-images.chroot b/data/live-build-config/hooks/live/41-init-podman-images.chroot
deleted file mode 100755
index 1915a40f..00000000
--- a/data/live-build-config/hooks/live/41-init-podman-images.chroot
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-
-# Download busybox container image for smoketests (only ~1MB)
-# Skopeo only added on development builds
-
-if command -v skopeo &>/dev/null; then
- skopeo copy --additional-tag docker.io/library/busybox:stable docker://docker.io/library/busybox:stable docker-archive://usr/share/vyos/busybox-stable.tar
-fi
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 71ba81ad..9845574e 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -135,7 +135,8 @@ RUN eval $(opam env --root=/opt/opam --set-root) && opam install -y \
ctypes \
ctypes-foreign \
ctypes-build \
- containers
+ containers \
+ fileutils
# Build VyConf which is required to build libvyosconfig
RUN eval $(opam env --root=/opt/opam --set-root) && \
diff --git a/packages/frr/Jenkinsfile b/packages/frr/Jenkinsfile
index 7971bb4c..d74244d6 100644
--- a/packages/frr/Jenkinsfile
+++ b/packages/frr/Jenkinsfile
@@ -30,7 +30,7 @@ def pkgList = [
'scmUrl': 'https://github.com/rtrlib/rtrlib.git',
'buildCmd': 'dpkg-buildpackage -uc -us -tc -b'],
['name': 'frr',
- 'scmCommit': 'stable/8.3',
+ 'scmCommit': 'stable/8.4',
'scmUrl': 'https://github.com/FRRouting/frr.git',
'buildCmd': 'cd ..; ./build-frr.sh'],
]
diff --git a/scripts/build-vyos-image b/scripts/build-vyos-image
index 2362ab1f..16b82281 100755
--- a/scripts/build-vyos-image
+++ b/scripts/build-vyos-image
@@ -71,7 +71,7 @@ def merge_dicts(source, destination):
if key not in tmp:
tmp[key] = value
elif isinstance(source[key], dict):
- tmp[key] = dict_merge(source[key], tmp[key])
+ tmp[key] = merge_dicts(source[key], tmp[key])
elif isinstance(source[key], list):
tmp[key] = source[key] + tmp[key]
else:
@@ -206,10 +206,6 @@ if __name__ == "__main__":
print("Use --build-type=release option if you want to set version number")
sys.exit(1)
- if not args['custom_apt_entry']:
- args['custom_apt_entry'] = []
- args['custom_apt_entry'] = args['custom_apt_entry'] + build_defaults['additional_repositories']
-
## Inject some useful hardcoded options
args['build_dir'] = defaults.BUILD_DIR
args['pbuilder_config'] = os.path.join(defaults.BUILD_DIR, defaults.PBUILDER_CONFIG)
@@ -385,6 +381,10 @@ if __name__ == "__main__":
f.write(vyos_repo_entry)
# Add custom APT entries
+ if not args['custom_apt_entry']:
+ args['custom_apt_entry'] = []
+ if build_config['additional_repositories']:
+ args['custom_apt_entry'] = args['custom_apt_entry'] + build_config['additional_repositories']
if build_config['custom_apt_entry']:
custom_apt_file = defaults.CUSTOM_REPO_FILE
entries = "\n".join(build_config['custom_apt_entry'])
@@ -397,7 +397,7 @@ if __name__ == "__main__":
# Add custom APT keys
if has_nonempty_key(build_config, 'custom_apt_key'):
- key_dir = ARCHIVES_DIR
+ key_dir = defaults.ARCHIVES_DIR
for k in build_config['custom_apt_key']:
dst_name = '{0}.key.chroot'.format(os.path.basename(k))
shutil.copy(k, os.path.join(key_dir, dst_name))