Reduced image dockerfile:





































































*FROM ubuntu:20.04 AS vpp-builderARG NEEDED_GIT_PROXYENV
DEBIAN_FRONTEND=noninteractiveRUN apt update && \
DEBIAN_FRONTEND=noninteractive apt-get upgrade --yes && \
DEBIAN_FRONTEND=noninteractive apt-get install --yes \        git \
sudo \        python3 \        wget \        make \        build-essential
\        libhyperscan-dev \        libmnl-dev \  && rm -rf
/var/lib/apt/lists/*# Applying vpp patchesRUN mkdir -p /root/src && cd
/root/src && git clone https://github.com/pimvanpelt/lcpng.git
<https://github.com/pimvanpelt/lcpng.git> && \    git clone -b stable/2210
https://github.com/fdio/vpp.git <https://github.com/fdio/vpp.git> && \
ln -s /root/src/lcpng /root/src/vpp/src/plugins/lcpng && \    cd
/root/src/vpp && \    touch /etc/apt/apt.conf.d/90forceyes && \    echo
 "APT::Get::Assume-Yes "true";" >> /etc/apt/apt.conf.d/90forceyes && \
echo  "APT::Get::force-yes "true";" >>
/etc/apt/apt.conf.d/90forceyesWORKDIR /root/src/# Build vpp with pimvanpelt
lcp pluginRUN make install-dep install-ext-deps build-release pkg-deb -C
vpp#---------------------------------------------------------------------#
TARGET
IMAGE#---------------------------------------------------------------------FROM
ubuntu:20.04 as vppENV DEBIAN_FRONTEND=noninteractiveENV
TZ=America/New_YorkRUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get upgrade --yes && \
DEBIAN_FRONTEND=noninteractive apt-get install --yes \        net-tools \
      tshark \        tzdata \        git \        openssl \
libhyperscan-dev \        iproute2 \        iputils-ping \        vim \
    python3 \        libcurl4-openssl-dev \        libssl-dev \
libnuma1 \        libmnl-dev \        make \        sudo && \        touch
/etc/apt/apt.conf.d/90forceyes && \        echo  "APT::Get::Assume-Yes
"true";" >> /etc/apt/apt.conf.d/90forceyes && \        echo
 "APT::Get::force-yes "true";" >> /etc/apt/apt.conf.d/90forceyes  WORKDIR
/root/packages/COPY --from=vpp-builder /root/src/vpp/build-root/*.deb ./RUN
git clone -b stable/2210 https://github.com/fdio/vpp.git
<https://github.com/fdio/vpp.git> && cd vpp && make install-dep && dpkg -i
/root/packages/*.deb && rm -rf /root/packages/ && rm -rf vpp && \
apt-get -y autoremove && apt-get clean autoclean && rm -fr
/var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/*WORKDIR /CMD
["/usr/bin/vpp", "-c", "/etc/vpp/startup.conf"]*

On Thu, Dec 22, 2022 at 11:59 PM Christopher Adigun <future...@gmail.com>
wrote:

> The repo I used for the lcp is https://github.com/pimvanpelt/lcpng.git
>
> I used the following dockerfile to build the image:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *FROM ubuntu:20.04ENV DEBIAN_FRONTEND noninteractiveRUN apt-get update &&
> apt-get install -y --no-install-recommends \
> apt-transport-https \                ca-certificates \                curl
> \                gnupg \                iproute2 \
> iputils-ping \                git \                libmnl-dev \
>     make \                libmnl-dev \                gcc \
> build-essential \                python3 \                sudo \        &&
> rm -rf /var/lib/apt/lists/*RUN set -eux; \        mkdir ~/src;cd ~/src; \
>       git clone https://gerrit.fd.io/r/vpp <https://gerrit.fd.io/r/vpp>; \
>       cd vpp;git checkout remotes/origin/stable/2202; \        cd ~/src;git
> clone https://github.com/pimvanpelt/lcpng.git;ln
> <https://github.com/pimvanpelt/lcpng.git;ln> -s ~/src/lcpng
> ~/src/vpp/src/plugins/lcpng;cd ~/src/vpp; \        yes | make
> install-deps;yes | make install-ext-deps;yes | make build-release;yes |
> make pkg-deb; \        dpkg -i build-root/*.deb; \        dpkg-query -f
> '${Version}\n' -W vpp > /software-versions; \        rm -rf
> build-root/*.deb; \        rm -rf /var/lib/apt/lists/*; \        cd ~; \
>     rm -rf /vpp;RUN mkdir -p /var/log/vppCMD ["/usr/bin/vpp", "-c",
> "/etc/vpp/startup.conf"]*
>
> I used the sample startup.conf from your blog article
> https://ipng.ch/s/articles/2021/12/23/vpp-playground.html
>
> plugins {
>   plugin lcpng_nl_plugin.so { enable }
>   plugin lcpng_if_plugin.so { enable }
> }
>
> lcpng {
>   lcp-sync
>   lcp-auto-subint
> }
>
>
> On Thu, Dec 22, 2022 at 4:21 PM Pim van Pelt via lists.fd.io <pim=
> ipng...@lists.fd.io> wrote:
>
>> Hoi,
>>
>> On Thu, Dec 22, 2022 at 10:16 PM Christopher Adigun <future...@gmail.com>
>> wrote:
>>
>>> Interface is still down which I need for my use-case because that is
>>> where the BGP communication is taking place.
>>>
>>> I tried your git repo and built the container image, now both are
>>> working fine.
>>>
>> Can you clarify which git repo did you build ?
>>
>>
>>> This means the official release has an issue like you said.
>>>
>> There are several issues, yes. Understanding which ones and how you
>> addressed them, will help the community to address them :)
>>
>> groet,
>> Pim
>>
>> --
>> Pim van Pelt <p...@ipng.nl>
>> PBVP1-RIPE - http://www.ipng.nl/
>>
>> 
>>
>>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22379): https://lists.fd.io/g/vpp-dev/message/22379
Mute This Topic: https://lists.fd.io/mt/95817807/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to