351 Commits

Author SHA1 Message Date
sarthurdev
dd71dc01eb nose: T7825: Use nose2 for unit tests 2025-09-17 22:16:28 +02:00
John Estabrook
01052f36c7 docker: T7583: add build dependencies for operational command runner 2025-08-07 13:50:30 -05:00
Christian Breunig
29780ec79f Docker: T7648: add additional vyos-1x dependencies python3-pyroute2, python3-voluptuous 2025-07-21 21:40:25 +02:00
Christian Breunig
a9a552bb44 Docker: T7648: add additional vyos-1x build dependencies
In order to run pylint and check for missing import statements we need to
install additional build dependencies.
2025-07-21 20:48:08 +02:00
Kyrylo Yatsenko
ac88f992f3 Docker: T7568: add apt-get update as last command
Some of GitHub actions were relying on cache from apt-get update
being available.

My previous changes broke those GitHub actions.

Add `apt-get update` as one of last commands, which adds ~20Mb,
but still 2.04Gb -> 2.01Gb for vyos-build comparing with Dockerfile
without cache cleaning.

No changes for vyos image as I hope it is not used in any automatic
scripts that use `apt-get install` without prior `apt-get update`.
2025-07-09 09:32:57 +03:00
Kyrylo Yatsenko
92ff04087f Docker: T7568: clean apt cache + clean some /tmp files
This saves ~50Mb for vyos-build image: 2.04Gb -> 1.99Gb
And ~19Mb for vyos image: 155Mb -> 136Mb

Docker stores all files created in each layer so
command

```
RUN wget -O /tmp/open-vmdk-master.zip https://github.com/.../master.zip && \
     unzip -d /tmp/ /tmp/open-vmdk-master.zip && \
     cd /tmp/open-vmdk-master/ && make && make install
```

will store open-vmdk-master.zip and /tmp/open-vmdk-master
in the image even though there is a cleanup command later:

```
RUN rm -rf /tmp/*
```

The cleanup command just makes these files invisible in last layer.

So temporary file must be removed in same RUN command
not to be stored in the image.

This commit adds such removals.
2025-06-22 12:57:54 +03:00
Viacheslav Hletenko
fcbd8d6cb4
Merge pull request #961 from c-po/kernel-perf-T7253
Kernel: T7253: build linux-perf-$version package
2025-05-15 20:59:55 +03:00
Christian Breunig
ffcf9b46ae Docker: T7253: re-add build-essential dependency for vyos-1x
vyshim consists out of C code which needs the build-essential
package.
2025-05-15 06:50:04 +02:00
Daniil Baturin
cae7cd90e0 docker: T7450: use PCRE2 for vyos-utils and libvyosconfig 2025-05-13 13:22:02 +01:00
Christian Breunig
73df823da1 Docker: T7253: remove Kernel build dependencies to shrink container image
Move the Kernel build dependencies to package.toml to unbload the build
container even more.
2025-05-12 20:45:52 +02:00
Date Huang
b894227750 T7405: add missing dependency kpartx for all archs
Signed-off-by: Date Huang <tjjh89017@hotmail.com>
2025-04-27 14:39:20 +08:00
John Estabrook
7e70105a5e T7292: add build dependency python3-protobuf
Used at build of python modules to autogenerate dataclasses from
vyconf.proto.
2025-03-30 16:40:29 -05:00
Christian Breunig
ccaec002d6 Docker: T861: move to bookworm-slim distribution 2025-03-18 16:19:39 +01:00
John Estabrook
0a6c197226 T7121: add build dependency protobuf-compiler 2025-03-16 23:59:49 -05:00
Christian Breunig
a33a6d2770 Docker: T5400: do not initialize OPAM environment at all
Instead of trying to fix - what we call - "Schroedingers build environment"
in this container, we should rather fix the Makefiles of the individual
project using OCaml code.
2025-03-15 21:13:25 +01:00
Christian Breunig
ab76eab002 Revert "Docker: T5400: ensure OPAM environment is always present"
This reverts commit b8f99c754702b094ace7fd632f3a035736a44fb4.
2025-03-15 21:06:41 +01:00
Christian Breunig
b8f99c7547 Docker: T5400: ensure OPAM environment is always present 2025-03-07 14:15:40 +01:00
John Estabrook
ee0c643908 Docker: T5400: move build of libvyosconfig to vyos-1x
libvyosconfig is both a build and a run dependency of vyos-1x.
Satisfying the build dependency within the Docker image requires
coordination of updates to vyos-build/libvyosconfig/vyos-1x on any
changes to the library; simplify this process by moving the build to a
step of the vyos-1x Makefile.
2025-03-04 15:23:32 +01:00
Daniil Baturin
867656b614
Merge pull request #903 from oniko94/current
T6353: Add cracklib dependencies, fix local Docker build
2025-02-21 14:20:22 +00:00
Christian Breunig
f0752afa91 Docker: T861: add sbsigntool to build container 2025-02-20 17:12:32 +01:00
oniko94
e846e68f9f
docker: T6353: Add libcrack2 dependencies and fix local Docker build 2025-02-17 08:51:02 +02:00
John Estabrook
841b0f4172 docker: T7170: fix sed pattern for change in OPAM install.sh 2025-02-14 12:59:25 -06:00
John Estabrook
7200377c33 T7046: T6342: update libvyosconfig commit hash 2025-01-20 14:19:12 -06:00
aapostoliuk
4d64c894b4 T2326: opennhrp: Removed OpenNHRP package
Removed OpenNHRP package
2025-01-13 15:52:08 +02:00
Christian Breunig
38395e86d5 T6674: remove all references to Jenkins 2024-12-23 09:47:19 +01:00
John Estabrook
a32d7989f5 T6718: update libvyosconfig commit hash for fix to dlopen lib name 2024-12-10 09:08:43 -06:00
Daniil Baturin
15c0bd7578
Merge pull request #824 from jestabro/vyconf-minimal
T6718: use the vyconf daemon for validation of set commands
2024-12-06 21:37:58 +00:00
John Estabrook
e4dcc5961f docker: T6718: libvyosconfig update for vyconf 2024-12-06 08:52:15 -06:00
John Estabrook
04d7f13c49 docker: T6929: fix sed pattern for change in Opam install.sh 2024-12-02 11:37:47 -06:00
Daniil Baturin
2cec3b9cba scripts: T6877: add a script for merging multiple flavor files 2024-11-14 18:07:53 +00:00
John Estabrook
a6d121f3dc docker: T6718: vyos1x-config is now pinned in libvyosconfig build script 2024-10-25 10:04:09 -05:00
Daniil Baturin
1807ded1b1
Merge pull request #820 from HollyGurza/T6684
T6684: new Debian package repo snapshot logic
2024-10-24 12:11:46 +01:00
khramshinr
13bc96d4dc T6684: new Debian package repo snapshot logic
Added functionality to store version information for temporarily installed packages.
2024-10-24 14:25:39 +06:00
Christian Breunig
b66e95d3f8
Merge pull request #799 from rebortg/T973_go
T973: upgrade go version in dockerfile
2024-10-08 07:16:02 +02:00
John Estabrook
394828f82e docker: T4318: libvyosconfig update for set_tag value 2024-10-07 13:10:14 -05:00
rebortg
c660a9c832 T973: upgrade go version in dockerfile 2024-10-07 20:09:06 +02:00
Daniil Baturin
c611f83ad1 docker: T6742: libvyosconfig update for childless node rendering 2024-10-01 19:44:49 +01:00
Daniil Baturin
5788fc9075 build-image: T6742: update vyos1x-config for childless non-leaf node fixes 2024-09-27 17:01:14 +01:00
sarthurdev
983e4ffd97 build: T861: Add socat as needed by commit 7f23b57 2024-09-17 11:30:36 +02:00
Daniil Baturin
d5adf5b36c
Merge pull request #758 from HollyGurza/T6684
T6684: new Debian package repo snapshot logic
2024-09-16 16:51:14 +01:00
khramshinr
a26ef9e170 T6684: new Debian package repo snapshot logic
patch live-build to save information about all installed packages and their source repo, including temporary packages
2024-09-16 14:23:59 +06:00
Christian Breunig
928c1f505b Docker: T861: fix warning for UID_MIN/UID_MAC out of range
Rise upper limit for UID when working in an Active Direcotry integrated
environment. This solves the warning: vyos_bld's uid 1632000007 outside of the
UID_MIN 1000 and UID_MAX 60000 range.
2024-09-14 23:14:19 +02:00
Christian Breunig
3e9cda21c8 Docker: T861: fix warnings about latest ENV key=value syntax 2024-09-05 07:13:08 +02:00
Christian Breunig
bf91ef9aab Docker: T6510: add missing build dependencies for vyos-configd tests 2024-06-26 20:42:57 +02:00
Christian Breunig
ab06c1a41a T6404: update vyos1x-config commit reference 2024-05-27 07:28:40 +02:00
Daniil Baturin
18c90e9013 docker: T6388: use OCaml 4.14.2 for package builds 2024-05-23 14:11:43 +01:00
Christian Breunig
fad55b3e97 Docker: add missing dependency on cmake to build accel-ppp 2024-05-19 09:20:17 +02:00
Viacheslav Hletenko
ac1b06cf2c T6311: Docker add dependency asciidoc-base for nftables
Add dependency `asciidob-base` for build nftables
2024-05-07 10:30:15 +00:00
Viacheslav Hletenko
9d07adceb7 T6307: Add dependency procps to build vyos-1x
This fixes the sysctl dependency
```
======================================================================
ERROR: test_sysctl_read (test_utils.TestVyOSUtils.test_sysctl_read)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/vyos/work/tmp/vyos-1x/src/tests/test_utils.py", line 28, in test_sysctl_read
    self.assertEqual(sysctl_read('net.ipv4.conf.lo.forwarding'), '1')
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/vyos/work/tmp/vyos-1x/python/vyos/utils/system.py", line 28, in sysctl_read
    tmp = run(['sysctl', '-nb', name], capture_output=True)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'sysctl'
```
2024-05-06 11:35:38 +00:00
Christian Breunig
6ff4b31c4a Docker: T6283: T6250: no need to include rtrlib and libyang in general
FRR build tracks the rtrlib and libyang version, so only one place is needed to
build to sources.
2024-05-04 16:15:54 +02:00