Skip to content

Commit

Permalink
Add a custom simple_switch_grpc Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
stano45 committed Sep 5, 2024
1 parent 5757ffe commit 841df7e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions examples/container_migration_in_kubernetes/Containerfile.bmv2
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM debian:bullseye-slim

RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
curl \
gnupg2 \
&& rm -rf /var/lib/apt/lists/*

RUN echo "Acquire::ForceIPv4 \"true\";" > /etc/apt/apt.conf.d/99force-ipv4

RUN echo 'deb http://download.opensuse.org/repositories/home:/p4lang/Debian_11/ /' > /etc/apt/sources.list.d/home:p4lang.list \
&& curl -fsSL https://download.opensuse.org/repositories/home:p4lang/Debian_11/Release.key | gpg --dearmor -o /etc/apt/trusted.gpg.d/home_p4lang.gpg

RUN apt-get update && apt-get install -y --no-install-recommends \
p4lang-bmv2 \
&& rm -rf /var/lib/apt/lists/*

ENTRYPOINT ["simple_switch_grpc"]

CMD ["--help"]

0 comments on commit 841df7e

Please sign in to comment.