Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Append yanet-announcer.py into YANET image #244

Merged
merged 1 commit into from
Sep 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions build/Dockerfile.image
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG RELEASE=22.04
FROM --platform=linux/amd64 ubuntu:${RELEASE} as environment
FROM --platform=linux/amd64 ubuntu:${RELEASE} AS environment

RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
Expand Down Expand Up @@ -28,7 +28,8 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \

RUN python3 -m pip install meson==0.61.2

FROM environment as builder

FROM environment AS builder

ARG YANET_VERSION_MAJOR=0
ARG YANET_VERSION_MINOR=0
Expand All @@ -50,6 +51,7 @@ RUN meson setup --prefix=/target \

RUN meson compile -C build


FROM --platform=linux/amd64 ubuntu:${RELEASE}

RUN apt-get update
Expand All @@ -61,8 +63,10 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
libmlx5-1 \
libnuma1 \
libpcap0.8 \
netbase
netbase \
python3

COPY --from=builder /opt/yanet/build/controlplane/yanet-controlplane /usr/bin/
COPY --from=builder /opt/yanet/build/dataplane/yanet-dataplane /usr/bin/
COPY --from=builder /opt/yanet/build/cli/yanet-cli /usr/bin/
COPY --from=builder /opt/yanet/yanet-announcer.py /usr/bin/yanet-announcer
Loading