summaryrefslogtreecommitdiff
path: root/alpine
diff options
context:
space:
mode:
authorArthur Jones <arthur.jones@riverbed.com>2018-03-12 12:24:26 -0700
committerArthur Jones <arthur.jones@riverbed.com>2018-03-19 13:05:26 -0700
commit79bb4564089da1f395247731e1be16f32dce5961 (patch)
treece70f0fe57449b90431e58499c0680ceb40f0d38 /alpine
parent5a52387a11c907f6435e76ac27741f734106b5a5 (diff)
docker build: build Alpine Linux dev packages in docker
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>
Diffstat (limited to 'alpine')
-rw-r--r--alpine/APKBUILD.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/alpine/APKBUILD.in b/alpine/APKBUILD.in
index 33c2859245..2b211ccafd 100644
--- a/alpine/APKBUILD.in
+++ b/alpine/APKBUILD.in
@@ -18,7 +18,8 @@ makedepends="ncurses-dev net-snmp-dev gawk texinfo perl
libstdc++ libtool libuuid linux-headers lzip lzo m4 make mkinitfs mpc1
mpfr3 mtools musl-dev ncurses-libs ncurses-terminfo ncurses-terminfo-base
patch pax-utils pcre perl pkgconf python2 python2-dev readline
- readline-dev sqlite-libs squashfs-tools sudo tar texinfo xorriso xz-libs"
+ readline-dev sqlite-libs squashfs-tools sudo tar texinfo xorriso xz-libs
+ py-sphinx"
subpackages="$pkgname-dev $pkgname-doc $pkgname-dbg"
source="$pkgname-$pkgver.tar.gz"