summaryrefslogtreecommitdiff
path: root/alpine/APKBUILD.in
AgeCommit message (Collapse)Author
2024-06-14docker: Set ABUILD_APK_INDEX_OPTS for frr buildDonatas Abraitis
In build() stage of abuild, it does `apk index ...` where frr* 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-03-09docker: Fix post function for Alpine build (package)Donatas Abraitis
It was using a wrong sysdir. ``` -------------------- 72 | # Own the config / PID files 73 | RUN mkdir -p /var/run/frr 74 | >>> RUN chown -R frr:frr /etc/frr /var/run/frr 75 | 76 | # Simple init manager for reaping processes and forwarding signals -------------------- ``` Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
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-07-31docker: Use openssl instead of libresslDonatas Abraitis
libressl is dropped from Alpine 3.18 for s390x. 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-04-08docker: Enable Lua (scripting) for Alpine imagesDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-04-04docker: Install missing dependencies for Alpine buildDonatas Abraitis
protobuf-c-compiler protobuf-c-dev Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-01-06docker,alpine: Remove isl from dependenciesYutaro Hayakawa
Alpine upstream changed the name of the isl package to isl-dev. This caused the build breakage. Since FRR doesn't use it, we chose to solve this issue by removing it. Signed-off-by: Yutaro Hayakawa <yutaro.hayakawa@isovalent.com>
2022-11-07docker: Compile Alpine image using PCRE2Donatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-11-07docker: Use pcre2 for Alpine buildsDonatas Abraitis
libyang already uses pcre2 too. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-11-07docker: Reuse all possible cores when building FRR for AlpineDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-07-17alpine, docker: Update APKBUILD for libyangQuentin Young
Signed-off-by: Quentin Young <qlyoung@nvidia.com>
2021-08-30alpine: fix path for daemons file installQuentin Young
The install statement was putting the daemons file at "/etc/frr" instead of making a new directory "/etc/frr" and putting it inside there. 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-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-04-16alpine: add missing libelf-dev dependencyQuentin Young
Signed-off-by: Quentin Young <qlyoung@nvidia.com>
2020-10-22alpine: Remove old docker deps for alpineWesley Coakley
Remove py-ipaddr and ipsec-tools as deps in the Alpine build container, as these were both Python 2 libraries and are not used here anymore `ipsec-tools` is also no longer available in Alpine's test repos and was causing breakage on this builder Signed-off-by: Wesley Coakley <wcoakley@nvidia.com>
2020-06-24alpine: enable multi-arch buildsQuentin Young
Now that amd64 dependencies have been removed we can use the correct architecture specifier for Alpine packaging metadata in order to build packages for all supported platforms. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2020-05-31alpine: update packagesQuentin Young
Alpine builds have been failing for some time as a consequence of only installing python 2 development packages when we have build scripts that require python 3. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2020-03-25*: use the current project name (FRRouting)Lou Berger
Signed-off-by: Lou Berger <lberger@labn.net>
2019-12-03alpine: fix build on current 'edge' version of AlpineJuergen Werner
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>
2019-10-16alpine: clean up dep blockQuentin Young
Wrap to 80 cols... Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2019-10-16alpine: update mpfr3 -> mpfr4Quentin Young
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2019-09-23issue/5035: Remove warning for missing pytest during build phase and add ↵Ronny Trommer
libcap-dev dependency Signed-off-by: Ronny Trommer <ronny@opennms.org>
2019-07-15docker: build alpine docker w/ rpki enabledQuentin Young
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2019-03-26alpine/APKBUILD.in: Don't include daemons from srcdirChristian Franke
The daemons file will be generated during the build, so there is no need to copy it over from the first stage.
2019-03-26alpine/APKBUILD.in: Add libyang-dev dependency, drop binutils-libsChristian Franke
We need libyang to build FRR, so add it to the make dependencies. Alpine will automatically detect it as runtime dependency, so no need to add it there. The package binutils-libs doesn't exist anymore, so remove it from the dependencies.
2019-03-26alpine: Move docker-start to Docker buildChristian Franke
The standard Alpine package should not install docker glue, so remove it from the APKBUILD and install it in the Dockerfile instead.
2018-12-06*: get rid of most daemons.conf referencesDavid Lamparter
There's a few left over to get compatibility and not break user installs, but most is gone. Signed-off-by: David Lamparter <equinox@diac24.net>
2018-06-14alpine: add unit tests to buildArthur Jones
Now that make check works on alpine, add it to the build Testing done: alpine linux build -- check works Issue: https://github.com/FRRouting/frr/issues/2391 Signed-off-by: Arthur Jones <arthur.jones@riverbed.com>
2018-04-09alpine packaging: use a more standard packaging formatArthur Jones
Currently, we just package the frr daemons, but we don't run them. This is fine for basic tests, but it is inconvenient to orchestrate the daemons from downstream test environments. Here, we follow the redhat and debianpkg formats more closely, putting the daemons in /usr/lib/frr and including the frr user and groups in the package. We also include a docker specific startup script and a sysvinit link in /etc/init.d/frr for openrc based alpine installs. Testing done: Built packages, built base images, everything seems to work fine. Uninstalled the package, all the daemons stopped. Issue: https://github.com/FRRouting/frr/issues/2030 Signed-off-by: Arthur Jones <arthur.jones@riverbed.com>
2018-03-19docker build: build Alpine Linux dev packages in dockerArthur Jones
Building alpine packages in a "standard" distro can be complicated due to the limited scope of the distro (embedded and small docker images). Building in a VM is one possibility, but docker support for alpine is very good (default docker images come in alpine due to the very small size). Here, we want to package up the current git repo into apk packages that can be easily installed in alpine linux using the apk tool. This support is not intended to package released versions of apk packages, that, if it comes to be, should be done here: git://git.alpinelinux.org/aports We're content here to build packages that can be used by developers to try out frr in docker and other alpine environments. This is a very minimal environment, we don't support importing keys (so, installing the packages with apk requires the --allow-untrusted option). In addition, we can't use the git commit id in hex as version tag, as alpine doesn't support hex digits in the version string. So, we need to convert the git hash to decimal before tagging the package with the extra version. This is yucky, but I can't think of another way to get a unique version per package. The alpine way (using a numeric date), only works for released packages, not for dev packages. Issue: https://github.com/FRRouting/frr/issues/1859 Signed-off-by: Arthur Jones <arthur.jones@riverbed.com>
2018-03-11alpine: minimal alpine packagingArthur Jones
For building dev packages for alpine, we provide a minimal APKBUILD file and add a configure option for only numeric versions in the VERSION variable as alpine does not allow non-numeric characters in the version string. These changes allow alpine to be built, but don't yet provide a mechanism to build. Changes to do the build in docker are coming soon... Testing done: Built alpine packages in local docker environment, packages showed no "dev" in the package name. Also built CentOS packages with numeric version disabled and the "dev" is still in the package name. Issue: https://github.com/FRRouting/frr/issues/1859 Signed-off-by: Arthur Jones <arthur.jones@riverbed.com>