summaryrefslogtreecommitdiffstats
path: root/docker (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #16143 from eremcan/patch-1Donatas Abraitis2024-06-071-1/+1
|\ | | | | docker: fix chmod issues when running container for debian
| * docker: fix chmod issues when running debian containerÇağatay Erem2024-06-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | 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>
* | docker: update docker reference to follow latest docsChristian Hopps2024-05-313-21/+31
|/ | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* docker: Do not use pip Python package managerDonatas Abraitis2024-03-091-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* docker: Use Alpine Linux version 3.19Donatas Abraitis2024-03-091-3/+3
| | | | Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
* docker: Use libyang 2.1.128 for Alpine buildsDonatas Abraitis2024-03-091-1/+1
| | | | Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
* doc: docker: update with new more strict protobuf requirementsChristian Hopps2024-02-121-5/+3
| | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* build: update packaging & docs for dir changesDavid Lamparter2024-01-271-2/+2
| | | | | | | `--sysconfdir` and `--localstatedir` now align with general autoconf practices. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* build: protobuf is required so update building docsChristian Hopps2023-12-311-1/+8
| | | | | | | | - 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>
* docker: update ubuntu template for exabgp 4Louis Scalbert2023-12-141-5/+2
| | | | | | Update ubuntu template for exabgp 4 Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
* docker: fix /sbin/modprobe missingVincent Jardin2023-12-101-0/+1
| | | | | | kmod is needed in order to get modprobe Signed-off-by: Vincent Jardin <vjardin@free.fr>
* docker/ubi8-minimal: add protobuf-c runtime deplynnemorrison2023-12-041-1/+4
| | | | | | | 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>
* docker: fix typos in docs for ubuntu20-ci and ubuntu22-ciKonstantin Vasin2023-11-262-11/+11
| | | | Signed-off-by: Konstantin Vasin <126960927+k-v1@users.noreply.github.com>
* docker: Install the apk packages regardless of the platformDonatas Abraitis2023-07-311-2/+2
| | | | | | | 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>
* docker: Use libyang 2.1.80 for Alpine buildsDonatas Abraitis2023-07-201-3/+16
| | | | Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
* docker: Move Alpine dependency packages to APKBUILD fileDonatas Abraitis2023-07-201-4/+0
| | | | | | Do not mix APKBUILD and Dockerfile when installing dependencies. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
* docker: Install protobuf-c-devel for ubi8-minimalDonatas Abraitis2023-07-201-0/+1
| | | | | | | | 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>
* docker: Use Alpine Linux 3.18Donatas Abraitis2023-07-201-3/+3
| | | | | | | | 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>
* docker: Use libyang 2.1.80Donatas Abraitis2023-07-203-7/+7
| | | | Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
* doc: document sqlite3 depend and add to docker buildChristian Hopps2023-07-071-0/+2
| | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* docker: ubuntu-ci 18.04 -> 22.04, topotest parallel run examplesChristian Hopps2023-06-098-205/+196
| | | | | | | 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>
* Merge pull request #12797 from jvidalallende/ubi8_minimal_dockerfileQuentin Young2023-04-125-90/+170
|\ | | | | docker: reduce ubi8 images size by using ubi8-minimal as base
| * docker: add support for ubi8-minimalJuan Vidal Allende2023-02-204-0/+213
| | | | | | | | | | | | | | | | | | | | | | | | 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>
| * docker: remove support for ubi-8Juan Vidal Allende2023-02-203-133/+0
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* | doc: Add documentation for MGMT daemonPushpasis Sarkar2023-03-226-3/+6
|/ | | | | | | | | | 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>
* docker: Use Alpine 3.17 as base imageDonatas Abraitis2022-12-021-3/+3
| | | | Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
* docker: Use Alpine 3.16 imageDonatas Abraitis2022-11-071-3/+3
| | | | Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
* docker: Keep and copy .apk files after they are builtDonatas Abraitis2022-09-202-25/+13
| | | | | | For debugging purposes and/or to distribute them somewhere else. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
* docker: use Alpine-provided libyangQuentin Young2022-07-181-13/+16
| | | | | | | 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>
* alpine, docker: Update APKBUILD for libyangQuentin Young2022-07-181-8/+2
| | | | Signed-off-by: Quentin Young <qlyoung@nvidia.com>
* Merge pull request #11270 from opensourcerouting/fix/docker_builds_centosDonald Sharp2022-05-243-10/+10
|\ | | | | docker: CentOS/UBI adoptions for librtr 0.8.0
| * docker: Install systemd-devel for centos7 buildDonatas Abraitis2022-05-241-1/+1
| | | | | | | | | | | | | | | | | | ``` 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>
| * docker: Use librtr 0.8.0 for centos/ubi buildsDonatas Abraitis2022-05-243-9/+9
| | | | | | | | Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
* | docker: Use Alpine 3.15 for buildDonatas Abraitis2022-05-241-3/+4
|/ | | | | | This has librtr 0.8.0, while 3.13 has 0.7.0. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
* Merge pull request #10916 from rampxxxx/feat_frr_ubi8_dockerDonatas Abraitis2022-03-313-0/+133
|\ | | | | docker: Adding support for ubi-8 images.
| * docker: Adding support for ubi-8 images.Javier Garcia2022-03-313-0/+133
| | | | | | | | | | | | | | | | | | | | | | - 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>
* | docker: Centos-8 dockerfile fix.Javier Garcia2022-03-291-0/+8
|/ | | | | | - Need to adapt repos to new centos-8 stream. Signed-off-by: Javier Garcia <javier.martin.garcia@ibm.com>
* docker: update alpine build enable set own versionStephen Worley2022-01-042-2/+10
| | | | | | | | | | | | 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>
* docker: remove grpc from Travis CIIgor Ryzhov2021-10-011-2/+0
| | | | Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
* docker: update with micronet changesChristian Hopps2021-09-042-14/+18
| | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* docker: add expected log functions to alpine docker-startQuentin Young2021-08-301-0/+14
| | | | | | Some basic functions are required by frrcommon.sh Signed-off-by: Quentin Young <qlyoung@nvidia.com>
* docker: build libyang2 along with FRRQuentin Young2021-08-304-17/+423
| | | | | | | | | | | | | | | | 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>
* Merge pull request #8508 from opensourcerouting/systemd-no-libQuentin Young2021-07-064-6/+6
|\
| * build, doc: extricate `--enable-systemd`David Lamparter2021-06-294-6/+6
| | | | | | | | | | | | Ouch, that is a *lot* of places to update... Signed-off-by: David Lamparter <equinox@diac24.net>
* | tests: enable lua script tests in ubuntu-20 ciDonald Lee2021-06-221-0/+2
|/ | | | Signed-off-by: Donald Lee <dlqs@gmx.com>
* docker: Use tini unilaterally and stop tailing /dev/nullWesley Coakley2021-06-168-48/+64
| | | | | | | | | | | | | tini is a hyper-minimal PID 0 which spawns a child process (watchfrr.sh in our case), reaps zombies and forwards signals to the script. Starting watchfrr.sh directly instead of through the old `tail /dev/null` or `sleep 365d` helps keep things clean too :) While tini was previously only used in the Alpine container it is useful to apply this PID 0 to all containers except the special CI ones. Fixes: #8788 Signed-off-by: Wesley Coakley <w@wesleycoakley.com>
* tests: add grpc unit testChristian Hopps2021-06-061-0/+2
| | | | | | | | Test uses staticd which required some C++ header protections. Additionally, the test also runs in the ubuntu20 docker container as grpc is supported there by the packaging system. Signed-off-by: Christian Hopps <chopps@labn.net>
* docker: fix ubuntu containersIgor Ryzhov2021-05-272-4/+4
| | | | Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
* Revert "build: libyangv2 is mainlined, update"Igor Ryzhov2021-05-272-16/+32
| | | | | | This partially reverts commit 250335d47cc338fa1951494a9b78bf429016a7e5. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
* build: libyangv2 is mainlined, updateChristian Hopps2021-05-272-32/+16
| | | | Signed-off-by: Christian Hopps <chopps@gmail.com>