aboutsummaryrefslogtreecommitdiffstats
path: root/extras/rpm/opensuse/Dockerfile
blob: 34a39ea77656fe21b0fecbbfb963d0e5d619aac0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Run from top of vpp repo with command:
# docker build -f extras/rpm/opensuse/Dockerfile .

ARG SUSE_VERSION=15.4

FROM opensuse/leap:${SUSE_VERSION} as vppbuild
COPY . /vpp
WORKDIR /vpp
RUN zypper refresh
RUN zypper install -y make sudo
COPY . .
RUN UNATTENDED=y make install-dep
RUN ln -s /usr/bin/cmake /usr/bin/cmake3
RUN UNATTENDED=y make install-ext-deps
RUN make pkg-rpm
CMD ["/bin/bash"]