summaryrefslogtreecommitdiffstats
path: root/docker (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* lib: libyang2 add missed conversionChristian Hopps2021-05-182-6/+6
| | | | Signed-off-by: Christian Hopps <chopps@labn.net>
* lib: adapt to version 2 of libyangChristian Hopps2021-05-132-14/+14
| | | | | | | | | Compile with v2.0.0 tag of `libyang2` branch of: https://github.com/CESNET/libyang staticd init load time of 10k routes now 6s vs ly1 time of 150s Signed-off-by: Christian Hopps <chopps@labn.net>
* Merge pull request #8482 from wesleycoakley/docker-prefer-cmd-to-entrypointMark Stapp2021-04-207-7/+9
|\ | | | | docker: prefer CMD to ENTRYPOINT for flexibility
| * docker: prefer CMD to ENTRYPOINTWesley Coakley2021-04-167-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specifying watchfrr as CMD instead of ENTRYPOINT allows one to easily override this command when starting a docker container. This allows simple, manual testing via (e.g.) bash. With ENTRYPOINT only the container will simply explode with an exit code if watchfrr exits. For instance one could start a shell session in this container via: ``` docker run --name test --rm -i -t <frr-container> bash ``` The default behavior (`docker run <frr-container>` with no command specified) is not changed. Signed-off-by: Wesley Coakley <wcoakley@nvidia.com>
* | docker: pin alpine base image to 3.13Quentin Young2021-04-161-3/+3
|/ | | | | | 'latest' isn't appropriate for us Signed-off-by: Quentin Young <qlyoung@nvidia.com>
* ubuntu20-ci: create a docker 20.04 container for dev / test / ciLou Berger2021-04-123-0/+127
| | | | Signed-off-by: Lou Berger <lberger@labn.net>
* ubuntu18-ci: create a docker 18.04 container for dev / test / ciLou Berger2021-04-123-0/+123
| | | | Signed-off-by: Lou Berger <lberger@labn.net>
* docker: centos 7, 8 yang bump and repo fixesWesley Coakley2021-01-222-11/+9
| | | | | | | | | | Bump libyang version in centos containers to 1.0.184 and (1) change "PowerTools" repository to "powertools" to accomodate CentOS Stream changes (1) https://bugs.centos.org/view.php?id=17920 Signed-off-by: Wesley Coakley <wcoakley@nvidia.com>
* docker: prefer alpine:latest for buildingWesley Coakley2021-01-221-8/+5
| | | | | | | | | | Building with alpine:edge caused some weirdness with our build scripts, switching to the stable branch seems to have aleviated this. We can also ditch the "edge" repositories as the main and community repositories provide all packages we need Signed-off-by: Wesley Coakley <wcoakley@nvidia.com>
* docker: don't fail on chown /etc/frrQuentin Young2020-06-101-1/+1
| | | | | | | | If we can chown /etc/frr then fine, but there's circumstances where we won't be able to - for instance, if running FRR in Kubernetes where /etc/frr/* is actually a virtual filesystem. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* docker: fix centos7 installQuentin Young2020-06-011-2/+2
| | | | | | We require python3-sphinx for RPM builds, but it wasn't being installed. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* Merge pull request #5606 from ton31337/fix/docker_centos8_image_nameJafar Al-Gharaibeh2020-01-061-1/+1
|\ | | | | docker: Use proper container name when creating CentOS 8 container
| * docker: Use proper container name when creating CentOS 8 containerDonatas Abraitis2020-01-031-1/+1
| | | | | | | | Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
* | Merge pull request #5467 from pogojotz/alpine-linux-buildDonatas Abraitis2020-01-051-0/+1
|\ \ | |/ |/| alpine: fix build on current 'edge' version of Alpine
| * alpine: fix build on current 'edge' version of AlpineJuergen Werner2019-12-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | The python2 packet py-sphinx was removed from the edge repository, so we use pip to install it localy for the package build process. Also abuild assumes it is executed in a git folder and fails if no .git is found in the folder or its parent folders, so we work around this, by initializing an empty git repo with `git init`. Signed-off-by: Juergen Werner <juergen@opensourcerouting.org>
* | docker: Create build for CentOS 8Donatas Abraitis2019-12-276-13/+99
| | | | | | | | Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
* | docker: Make docker image on CentOS 7Toshiki Tsuchiya2019-11-263-0/+86
|/ | | | | | | - Build rpm package from source on CentOS 7 - Use multi-stage builds to reduce docker image size Signed-off-by: Toshiki Tsuchiya <taruta0811@gmail.com>
* Merge pull request #5005 from Frankkkkk/dockerfileDonatas Abraitis2019-10-041-5/+12
|\ | | | | Make docker images lighter and with less layers
| * docker/debian: Make docker images lighter and with less layersFrank Villaro-Dixon2019-09-271-5/+12
| | | | | | | | Signed-off-by: Frank Villaro-Dixon <frank.villaro@infomaniak.com>
* | issue/5035: Remove warning for missing pytest during build phase and add ↵Ronny Trommer2019-09-231-1/+2
| | | | | | | | | | | | libcap-dev dependency Signed-off-by: Ronny Trommer <ronny@opennms.org>
* | issue/5035: Install pytest with pip to get the Alpine packages builtRonny Trommer2019-09-231-0/+2
|/ | | | Signed-off-by: Ronny Trommer <ronny@opennms.org>