mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 16:04:49 +00:00
Merge pull request #7890 from wesleycoakley/docker-fixups
docker: builder fixups
This commit is contained in:
commit
e1b49f5da7
@ -1,10 +1,9 @@
|
|||||||
# This stage builds a dist tarball from the source
|
# This stage builds a dist tarball from the source
|
||||||
FROM alpine:edge as source-builder
|
FROM alpine:latest as source-builder
|
||||||
|
|
||||||
RUN mkdir -p /src/alpine
|
RUN mkdir -p /src/alpine
|
||||||
COPY alpine/APKBUILD.in /src/alpine
|
COPY alpine/APKBUILD.in /src/alpine
|
||||||
RUN source /src/alpine/APKBUILD.in \
|
RUN source /src/alpine/APKBUILD.in \
|
||||||
&& echo 'http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories \
|
|
||||||
&& apk add \
|
&& apk add \
|
||||||
--no-cache \
|
--no-cache \
|
||||||
--update-cache \
|
--update-cache \
|
||||||
@ -22,10 +21,9 @@ RUN cd /src \
|
|||||||
&& make dist
|
&& make dist
|
||||||
|
|
||||||
# This stage builds an apk from the dist tarball
|
# This stage builds an apk from the dist tarball
|
||||||
FROM alpine:edge as alpine-builder
|
FROM alpine:latest as alpine-builder
|
||||||
# Don't use nocache here so that abuild can use the cache
|
# Don't use nocache here so that abuild can use the cache
|
||||||
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories \
|
RUN apk add \
|
||||||
&& apk add \
|
|
||||||
--update-cache \
|
--update-cache \
|
||||||
abuild \
|
abuild \
|
||||||
alpine-conf \
|
alpine-conf \
|
||||||
@ -46,11 +44,10 @@ RUN cd /dist \
|
|||||||
&& abuild -r -P /pkgs/apk
|
&& abuild -r -P /pkgs/apk
|
||||||
|
|
||||||
# This stage installs frr from the apk
|
# This stage installs frr from the apk
|
||||||
FROM alpine:edge
|
FROM alpine:latest
|
||||||
RUN mkdir -p /pkgs/apk
|
RUN mkdir -p /pkgs/apk
|
||||||
COPY --from=alpine-builder /pkgs/apk/ /pkgs/apk/
|
COPY --from=alpine-builder /pkgs/apk/ /pkgs/apk/
|
||||||
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories \
|
RUN apk add \
|
||||||
&& apk add \
|
|
||||||
--no-cache \
|
--no-cache \
|
||||||
--update-cache \
|
--update-cache \
|
||||||
tini \
|
tini \
|
||||||
|
@ -5,8 +5,8 @@ RUN yum install -y rpm-build autoconf automake libtool make \
|
|||||||
readline-devel texinfo net-snmp-devel groff pkgconfig \
|
readline-devel texinfo net-snmp-devel groff pkgconfig \
|
||||||
json-c-devel pam-devel bison flex pytest c-ares-devel \
|
json-c-devel pam-devel bison flex pytest c-ares-devel \
|
||||||
python3-devel python3-sphinx systemd-devel libcap-devel \
|
python3-devel python3-sphinx systemd-devel libcap-devel \
|
||||||
https://ci1.netdef.org/artifact/LIBYANG-YANGRELEASE/shared/build-10/CentOS-7-x86_64-Packages/libyang-0.16.111-0.x86_64.rpm \
|
https://ci1.netdef.org/artifact/LIBYANG-LY1REL/shared/build-4/CentOS-7-x86_64-Packages/libyang1-1.0.184-0.x86_64.rpm \
|
||||||
https://ci1.netdef.org/artifact/LIBYANG-YANGRELEASE/shared/build-10/CentOS-7-x86_64-Packages/libyang-devel-0.16.111-0.x86_64.rpm \
|
https://ci1.netdef.org/artifact/LIBYANG-LY1REL/shared/build-4/CentOS-7-x86_64-Packages/libyang-devel-1.0.184-0.x86_64.rpm \
|
||||||
https://ci1.netdef.org/artifact/RPKI-RTRLIB/shared/build-110/CentOS-7-x86_64-Packages/librtr-0.7.0-1.el7.centos.x86_64.rpm \
|
https://ci1.netdef.org/artifact/RPKI-RTRLIB/shared/build-110/CentOS-7-x86_64-Packages/librtr-0.7.0-1.el7.centos.x86_64.rpm \
|
||||||
https://ci1.netdef.org/artifact/RPKI-RTRLIB/shared/build-110/CentOS-7-x86_64-Packages/librtr-devel-0.7.0-1.el7.centos.x86_64.rpm
|
https://ci1.netdef.org/artifact/RPKI-RTRLIB/shared/build-110/CentOS-7-x86_64-Packages/librtr-devel-0.7.0-1.el7.centos.x86_64.rpm
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ RUN echo '%_smp_mflags %( echo "-j$(/usr/bin/getconf _NPROCESSORS_ONLN)"; )' >>
|
|||||||
# This stage installs frr from the rpm
|
# This stage installs frr from the rpm
|
||||||
FROM centos:centos7
|
FROM centos:centos7
|
||||||
RUN mkdir -p /pkgs/rpm \
|
RUN mkdir -p /pkgs/rpm \
|
||||||
&& yum install -y https://ci1.netdef.org/artifact/LIBYANG-YANGRELEASE/shared/build-10/CentOS-7-x86_64-Packages/libyang-0.16.111-0.x86_64.rpm \
|
&& yum install -y https://ci1.netdef.org/artifact/LIBYANG-LY1REL/shared/build-4/CentOS-7-x86_64-Packages/libyang1-1.0.184-0.x86_64.rpm \
|
||||||
https://ci1.netdef.org/artifact/RPKI-RTRLIB/shared/build-110/CentOS-7-x86_64-Packages/librtr-0.7.0-1.el7.centos.x86_64.rpm
|
https://ci1.netdef.org/artifact/RPKI-RTRLIB/shared/build-110/CentOS-7-x86_64-Packages/librtr-0.7.0-1.el7.centos.x86_64.rpm
|
||||||
|
|
||||||
COPY --from=centos-7-builder /rpmbuild/RPMS/ /pkgs/rpm/
|
COPY --from=centos-7-builder /rpmbuild/RPMS/ /pkgs/rpm/
|
||||||
|
@ -1,17 +1,15 @@
|
|||||||
# This stage builds an rpm from the source
|
# This stage builds an rpm from the source
|
||||||
FROM centos:centos8 as centos-8-builder
|
FROM centos:centos8 as centos-8-builder
|
||||||
|
|
||||||
RUN dnf install --enablerepo=PowerTools -y rpm-build git autoconf pcre-devel \
|
RUN dnf install --enablerepo=powertools -y rpm-build git autoconf pcre-devel \
|
||||||
automake libtool make readline-devel texinfo net-snmp-devel pkgconfig \
|
automake libtool make readline-devel texinfo net-snmp-devel pkgconfig \
|
||||||
groff pkgconfig json-c-devel pam-devel bison flex python2-pytest \
|
groff pkgconfig json-c-devel pam-devel bison flex python3-pytest \
|
||||||
c-ares-devel python2-devel systemd-devel libcap-devel platform-python-devel \
|
c-ares-devel python3-devel python3-sphinx systemd-devel libcap-devel platform-python-devel \
|
||||||
https://ci1.netdef.org/artifact/LIBYANG-YANGRELEASE/shared/build-10/CentOS-7-x86_64-Packages/libyang-0.16.111-0.x86_64.rpm \
|
https://ci1.netdef.org/artifact/LIBYANG-LY1REL/shared/build-4/CentOS-8-x86_64-Packages/libyang1-1.0.184-0.x86_64.rpm \
|
||||||
https://ci1.netdef.org/artifact/LIBYANG-YANGRELEASE/shared/build-10/CentOS-7-x86_64-Packages/libyang-devel-0.16.111-0.x86_64.rpm \
|
https://ci1.netdef.org/artifact/LIBYANG-LY1REL/shared/build-4/CentOS-8-x86_64-Packages/libyang-devel-1.0.184-0.x86_64.rpm \
|
||||||
https://ci1.netdef.org/artifact/RPKI-RTRLIB/shared/build-110/CentOS-7-x86_64-Packages/librtr-0.7.0-1.el7.centos.x86_64.rpm \
|
https://ci1.netdef.org/artifact/RPKI-RTRLIB/shared/build-110/CentOS-7-x86_64-Packages/librtr-0.7.0-1.el7.centos.x86_64.rpm \
|
||||||
https://ci1.netdef.org/artifact/RPKI-RTRLIB/shared/build-110/CentOS-7-x86_64-Packages/librtr-devel-0.7.0-1.el7.centos.x86_64.rpm
|
https://ci1.netdef.org/artifact/RPKI-RTRLIB/shared/build-110/CentOS-7-x86_64-Packages/librtr-devel-0.7.0-1.el7.centos.x86_64.rpm
|
||||||
|
|
||||||
RUN pip2 install sphinx
|
|
||||||
|
|
||||||
COPY . /src
|
COPY . /src
|
||||||
|
|
||||||
ARG PKGVER
|
ARG PKGVER
|
||||||
@ -35,7 +33,7 @@ RUN echo '%_smp_mflags %( echo "-j$(/usr/bin/getconf _NPROCESSORS_ONLN)"; )' >>
|
|||||||
# This stage installs frr from the rpm
|
# This stage installs frr from the rpm
|
||||||
FROM centos:centos8
|
FROM centos:centos8
|
||||||
RUN mkdir -p /pkgs/rpm \
|
RUN mkdir -p /pkgs/rpm \
|
||||||
&& yum install -y https://ci1.netdef.org/artifact/LIBYANG-YANGRELEASE/shared/build-10/CentOS-7-x86_64-Packages/libyang-0.16.111-0.x86_64.rpm \
|
&& yum install -y https://ci1.netdef.org/artifact/LIBYANG-LY1REL/shared/build-4/CentOS-8-x86_64-Packages/libyang1-1.0.184-0.x86_64.rpm \
|
||||||
https://ci1.netdef.org/artifact/RPKI-RTRLIB/shared/build-110/CentOS-7-x86_64-Packages/librtr-0.7.0-1.el7.centos.x86_64.rpm
|
https://ci1.netdef.org/artifact/RPKI-RTRLIB/shared/build-110/CentOS-7-x86_64-Packages/librtr-0.7.0-1.el7.centos.x86_64.rpm
|
||||||
|
|
||||||
COPY --from=centos-8-builder /rpmbuild/RPMS/ /pkgs/rpm/
|
COPY --from=centos-8-builder /rpmbuild/RPMS/ /pkgs/rpm/
|
||||||
|
Loading…
Reference in New Issue
Block a user