summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@nvidia.com>2022-07-18 01:10:45 +0200
committerQuentin Young <qlyoung@nvidia.com>2022-07-18 01:14:28 +0200
commit0bbc787cd3714d4e2521e969bf67b93462321c0f (patch)
tree4f2fa280f15ba97efbc0de9612bec8cd872a0ca6 /docker
parentalpine, docker: Update APKBUILD for libyang (diff)
downloadfrr-0bbc787cd3714d4e2521e969bf67b93462321c0f.tar.xz
frr-0bbc787cd3714d4e2521e969bf67b93462321c0f.zip
docker: use Alpine-provided libyang
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>
Diffstat (limited to 'docker')
-rw-r--r--docker/alpine/Dockerfile29
1 files changed, 16 insertions, 13 deletions
diff --git a/docker/alpine/Dockerfile b/docker/alpine/Dockerfile
index fa4b9859b..187b52852 100644
--- a/docker/alpine/Dockerfile
+++ b/docker/alpine/Dockerfile
@@ -15,11 +15,12 @@ RUN adduser -D -G abuild builder && su builder -c 'abuild-keygen -a -n'
# This stage builds a libyang APK from source
FROM alpine-builder as libyang-builder
RUN mkdir -p /libyang && chown -R builder /pkgs /libyang
-COPY docker/alpine/libyang/ /libyang
-USER builder
-RUN cd /libyang \
- && abuild checksum \
- && abuild -r -P /pkgs/apk
+# -- Not currently needed - libyang currently available in Alpine upstream
+# COPY docker/alpine/libyang/ /libyang
+# USER builder
+# RUN cd /libyang \
+# && abuild checksum \
+# && abuild -r -P /pkgs/apk
# This stage builds a dist tarball from the source
FROM alpine:3.15 as source-builder
@@ -37,10 +38,11 @@ RUN source /src/alpine/APKBUILD.in \
&& pip install pytest
RUN mkdir -p /pkgs/apk
-COPY --from=libyang-builder /pkgs/apk/ /pkgs/apk/
-RUN apk add \
- --no-cache \
- --allow-untrusted /pkgs/apk/*/*.apk
+# -- Not needed while libyang is not built
+# COPY --from=libyang-builder /pkgs/apk/ /pkgs/apk/
+# RUN apk add \
+# --no-cache \
+# --allow-untrusted /pkgs/apk/*/*.apk \
COPY . /src
ARG PKGVER
@@ -53,12 +55,13 @@ RUN cd /src \
# This stage builds an APK from the dist tarball
FROM alpine-builder as frr-apk-builder
-COPY --from=libyang-builder /pkgs/apk/ /pkgs/apk/
+# -- Not needed while libyang is not built
+# COPY --from=libyang-builder /pkgs/apk/ /pkgs/apk/
+# RUN apk add \
+# --no-cache \
+# --allow-untrusted /pkgs/apk/*/*.apk
COPY --from=source-builder /src/frr-*.tar.gz /src/alpine/* /dist/
RUN find /pkgs/apk -type f -name APKINDEX.tar.gz -delete
-RUN apk add \
- --no-cache \
- --allow-untrusted /pkgs/apk/*/*.apk
RUN chown -R builder /dist /pkgs
USER builder
RUN cd /dist \