summaryrefslogtreecommitdiff
path: root/docker
AgeCommit message (Collapse)Author
2025-01-12docker: add ubuntu24-ci docker image supportChristian Hopps
Signed-off-by: Christian Hopps <chopps@labn.net>
2024-11-26Docker: Add the ability to override FRR UIDMike RE Mallin
Signed-off-by: Mike RE Mallin <mmallin@cisco.com> Signed-off-by: Mike RE Mallin <mremallin@gmail.com>
2024-06-14docker: Set ABUILD_APK_INDEX_OPTS for libyangDonatas Abraitis
In build() stage of abuild, it does `apk index ...` where libyang* packages are unsigned. We don't sign them here, and thus we need to specify `--allow-untrusted`. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2024-06-14docker: Do not require checks for libyang Alpine Linux package buildDonatas Abraitis
Since Alpine Linux 3.20, we get this: >>> WARNING: libyang: APKBUILD does not run any tests! Alpine policy will soon require that packages have any relevant testsuites run during the build process. To fix, either define a check() function, or declare !check in $options to indicate the package does not have a testsuite. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2024-06-14docker: Use Alpine Linux 3.20Donatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2024-06-07Merge pull request #16143 from eremcan/patch-1Donatas Abraitis
docker: fix chmod issues when running container for debian
2024-06-04docker: fix chmod issues when running debian containerÇağatay Erem
I had problem by running container after build. It gave the error below in container, [FATAL tini (7)] exec /usr/lib/frr/docker-start failed: Permission denied So I have fixed the permission issues after building images. Signed-off-by: Çağatay Erem <cagatayerem@gmail.com>
2024-05-31docker: update docker reference to follow latest docsChristian Hopps
Signed-off-by: Christian Hopps <chopps@labn.net>
2024-03-09docker: Do not use pip Python package managerDonatas Abraitis
Alpine Linux gets this with 3.19: This is already installed with `pytest` via apk package manager. ``` 15 78.20 error: externally-managed-environment 15 78.20 15 78.20 × This environment is externally managed 15 78.20 ╰─> 15 78.20 The system-wide python installation should be maintained using the system 15 78.20 package manager (apk) only. 15 78.20 15 78.20 If the package in question is not packaged already (and hence installable via 15 78.20 "apk add py3-somepackage"), please consider installing it inside a virtual 15 78.20 environment, e.g.: 15 78.20 15 78.20 python3 -m venv /path/to/venv 15 78.20 . /path/to/venv/bin/activate 15 78.20 pip install mypackage 15 78.20 15 78.20 To exit the virtual environment, run: 15 78.20 15 78.20 deactivate 15 78.20 15 78.20 The virtual environment is not deleted, and can be re-entered by re-sourcing 15 78.20 the activate file. 15 78.20 15 78.20 To automatically manage virtual environments, consider using pipx (from the 15 78.20 pipx package). 15 78.20 15 78.20 note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. ``` Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2024-03-09docker: Use Alpine Linux version 3.19Donatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2024-03-09docker: Use libyang 2.1.128 for Alpine buildsDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2024-02-12doc: docker: update with new more strict protobuf requirementsChristian Hopps
Signed-off-by: Christian Hopps <chopps@labn.net>
2024-01-27build: update packaging & docs for dir changesDavid Lamparter
`--sysconfdir` and `--localstatedir` now align with general autoconf practices. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2023-12-31build: protobuf is required so update building docsChristian Hopps
- recommend using libyang 2.1.128 but accept 2.0.0 for now. - update ubuntu building doc to add GRPC section - update ubuntu reference docker builds to match grpc doc change Signed-off-by: Christian Hopps <chopps@labn.net>
2023-12-14docker: update ubuntu template for exabgp 4Louis Scalbert
Update ubuntu template for exabgp 4 Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
2023-12-09docker: fix /sbin/modprobe missingVincent Jardin
kmod is needed in order to get modprobe Signed-off-by: Vincent Jardin <vjardin@free.fr>
2023-12-04docker/ubi8-minimal: add protobuf-c runtime deplynnemorrison
FRR's RPM package requires protobuf-c to be installed on the runtime system, otherwise it will refuse to be installed. Signed-off-by: Juan Vidal Allende <juan.vidal1@ibm.com>
2023-11-26docker: fix typos in docs for ubuntu20-ci and ubuntu22-ciKonstantin Vasin
Signed-off-by: Konstantin Vasin <126960927+k-v1@users.noreply.github.com>
2023-07-31docker: Install the apk packages regardless of the platformDonatas Abraitis
It was hardcoded to x86_64, but we build Alpine images for more platforms, let's be dynamical here. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-07-20docker: Use libyang 2.1.80 for Alpine buildsDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-07-20docker: Move Alpine dependency packages to APKBUILD fileDonatas Abraitis
Do not mix APKBUILD and Dockerfile when installing dependencies. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-07-20docker: Install protobuf-c-devel for ubi8-minimalDonatas Abraitis
configure: error: in `/src': configure: error: protobuf requested but protoc-c not found. Install protobuf-c. See `config.log' for more details Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-07-20docker: Use Alpine Linux 3.18Donatas Abraitis
It has the newer libyang version 2.1.55, while 3.17 has 2.1.30. 3.19 will have 2.1.80. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-07-20docker: Use libyang 2.1.80Donatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-07-06doc: document sqlite3 depend and add to docker buildChristian Hopps
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-06-09docker: ubuntu-ci 18.04 -> 22.04, topotest parallel run examplesChristian Hopps
Update the READMEs, and give example of a full parallel topotest run with result extraction for analyze.py Signed-off-by: Christian Hopps <chopps@labn.net>
2023-04-12Merge pull request #12797 from jvidalallende/ubi8_minimal_dockerfileQuentin Young
docker: reduce ubi8 images size by using ubi8-minimal as base
2023-03-21doc: Add documentation for MGMT daemonPushpasis Sarkar
This commit adds user documentation for the new MGMT daemon and new FRR Management Framework. Co-authored-by: Yash Ranjan <ranjany@vmware.com> Co-authored-by: Abhinay Ramesh <rabhinay@vmware.com> Co-authored-by: Ujwal P <ujwalp@vmware.com> Signed-off-by: Pushpasis Sarkar <pushpasis@gmail.com>
2023-02-20docker: add support for ubi8-minimalJuan Vidal Allende
Docker image based on ubi8-minimal are smaller in size than previous ones built with ubi8 as base. Also, due to proper cleanup of caches, the final image is about 400MB in size (down from ~630MB using the older ubi8 builder). This Dockerfile also uses packages built for RHEL (instead of CentOS), and updates dependencies so that it can compile latest FRR versions. Signed-off-by: Juan Vidal Allende <juan.vidal1@ibm.com>
2023-02-20docker: remove support for ubi-8Juan Vidal Allende
The builder for docker images based on ubi-8 images is broken, and it generates docker images that are heavy and contain more artifacts than they need to. It also installs RPM packages from CentOS that, although seem to be compatible with ubi-8, may diverge at some point (remember that CentOS now does not track RHEL closely). Signed-off-by: Juan Vidal Allende <juan.vidal1@ibm.com>
2022-12-02docker: Use Alpine 3.17 as base imageDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-11-07docker: Use Alpine 3.16 imageDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-09-20docker: Keep and copy .apk files after they are builtDonatas Abraitis
For debugging purposes and/or to distribute them somewhere else. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-07-17docker: use Alpine-provided libyangQuentin Young
looks like libyang(2) is back in the upstream alpine repos, so we can use that instead Signed-off-by: Quentin Young <qlyoung@nvidia.com>
2022-07-17alpine, docker: Update APKBUILD for libyangQuentin Young
Signed-off-by: Quentin Young <qlyoung@nvidia.com>
2022-05-24Merge pull request #11270 from opensourcerouting/fix/docker_builds_centosDonald Sharp
docker: CentOS/UBI adoptions for librtr 0.8.0
2022-05-24docker: Use Alpine 3.15 for buildDonatas Abraitis
This has librtr 0.8.0, while 3.13 has 0.7.0. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-05-24docker: Install systemd-devel for centos7 buildDonatas Abraitis
``` error: Failed build dependencies: systemd-devel is needed by frr-8.3_git275938094422-01.el7.x86_64 ``` Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-05-24docker: Use librtr 0.8.0 for centos/ubi buildsDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-03-31Merge pull request #10916 from rampxxxx/feat_frr_ubi8_dockerDonatas Abraitis
docker: Adding support for ubi-8 images.
2022-03-31docker: Adding support for ubi-8 images.Javier Garcia
- Create frr docker container based in new Red Hat Universal Base Images. - This build a docker container based in ubi-8. - Need to get the devel packages from centos-8 stream repos. - Centos-8 stream repos added : base, appstream, powertools and epel Signed-off-by: Javier Garcia <javier.martin.garcia@ibm.com>
2022-03-29docker: Centos-8 dockerfile fix.Javier Garcia
- Need to adapt repos to new centos-8 stream. Signed-off-by: Javier Garcia <javier.martin.garcia@ibm.com>
2022-01-04docker: update alpine build enable set own versionStephen Worley
Add ability to set your own env for the version of the docker container alpine image. This is useful for applications like GNS3 who pin a specific version to look for when they boot up. When you build locally to test your code you can just set the version to 0 so you don't have to update configs/scripts looking for a specific image version. Also fix a shebang in docker start for alpine. Signed-off-by: Stephen Worley <sworley@nvidia.com>
2021-10-01docker: remove grpc from Travis CIIgor Ryzhov
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2021-09-04docker: update with micronet changesChristian Hopps
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-08-30docker: add expected log functions to alpine docker-startQuentin Young
Some basic functions are required by frrcommon.sh Signed-off-by: Quentin Young <qlyoung@nvidia.com>
2021-08-30docker: build libyang2 along with FRRQuentin Young
Alpine images have been broken for some time because libyang2 is not available in Alpine. This patch updates our Dockerfile to build a libyang2 APK and install it into the image to satisfy FRR's libyang2 dependency. Unfortunately, libyang2 erroneously includes an internal header from glibc, making it dependent on glibc to build. FRR's official Docker images are based on Alpine, which only offers musl libc. Until libyang2 fixes this problem, the libyang2 source that is installed in this image is a patched version that is compatible with musl libc and not an official version. Signed-off-by: Quentin Young <qlyoung@nvidia.com>
2021-07-06Merge pull request #8508 from opensourcerouting/systemd-no-libQuentin Young
2021-06-29build, doc: extricate `--enable-systemd`David Lamparter
Ouch, that is a *lot* of places to update... Signed-off-by: David Lamparter <equinox@diac24.net>
2021-06-23tests: enable lua script tests in ubuntu-20 ciDonald Lee
Signed-off-by: Donald Lee <dlqs@gmx.com>