]> git.puffer.fish Git - mirror/frr.git/commit
docker build: build Alpine Linux dev packages in docker 1875/head
authorArthur Jones <arthur.jones@riverbed.com>
Mon, 12 Mar 2018 19:24:26 +0000 (12:24 -0700)
committerArthur Jones <arthur.jones@riverbed.com>
Mon, 19 Mar 2018 20:05:26 +0000 (13:05 -0700)
commit79bb4564089da1f395247731e1be16f32dce5961
treece70f0fe57449b90431e58499c0680ceb40f0d38
parent5a52387a11c907f6435e76ac27741f734106b5a5
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>
alpine/APKBUILD.in
doc/Makefile.am
doc/developer/Building_FRR_on_Alpine.rst [new file with mode: 0644]
doc/developer/building.rst
docker/.gitignore [new file with mode: 0644]
docker/alpine/Dockerfile [new file with mode: 0644]
docker/alpine/alpine-build.sh [new file with mode: 0755]
docker/alpine/build.sh [new file with mode: 0755]
docker/alpine/builder [new file with mode: 0644]