From 717ed287d83fac4c46b09ca6572206f661a3631f Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Sun, 17 Dec 2023 10:30:43 +0200 Subject: [PATCH] add CMD to start gobgpd --- containers/gobgp/Dockerfile | 1 + containers/gobgp/README.md | 2 +- containers/gobgp/conf/bgp.conf | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/containers/gobgp/Dockerfile b/containers/gobgp/Dockerfile index 39a0bdf..bbdd8f0 100644 --- a/containers/gobgp/Dockerfile +++ b/containers/gobgp/Dockerfile @@ -13,3 +13,4 @@ RUN wget https://github.com/osrg/gobgp/releases/download/v3.21.0/gobgp_3.21.0_li && mv /tmp/gobgp /tmp/gobgpd /usr/local/bin/ \ && rm -rf /tmp/* +CMD gobgpd --config-file=/opt/gobgp/bgp.conf diff --git a/containers/gobgp/README.md b/containers/gobgp/README.md index 9a90f42..283d68a 100644 --- a/containers/gobgp/README.md +++ b/containers/gobgp/README.md @@ -1,6 +1,6 @@ # gobgp container in VyOS -Build container +Build container: ```shell sudo podman build --net host --tag gobgp:one -f ./Dockerfile ``` diff --git a/containers/gobgp/conf/bgp.conf b/containers/gobgp/conf/bgp.conf index df0ea3e..eadc986 100644 --- a/containers/gobgp/conf/bgp.conf +++ b/containers/gobgp/conf/bgp.conf @@ -1,6 +1,6 @@ [global.config] as = 65001 - router-id = "10.0.0.3" + router-id = "10.0.0.2" [[neighbors]] [neighbors.config]