Date created: 03/31/22 14:36:59. Last modified: 03/31/22 14:36:59

Dockerfile

GoBGP v3.0.0 with Go v1.18 on Ubuntu 20.04. Final image size is 852MB:

 

FROM ubuntu:20.04

RUN apt-get update && \
apt-get install -y --no-install-recommends ca-certificates git wget && \
wget https://go.dev/dl/go1.18.linux-amd64.tar.gz && \
tar -zxvf go1.18.linux-amd64.tar.gz && \
rm go1.18.linux-amd64.tar.gz && \
git clone https://github.com/osrg/gobgp.git && \
cd gobgp/ && \
../go/bin/go install ./cmd/gobgp && \
../go/bin/go install ./cmd/gobgpd && \
cd ../ && \
rm -rf gobgp/ && \
apt-get remove -y git wget && \
apt autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# Installed as:
# ~/go/bin/gobgp
# ~/go/bin/gobgpd

 


Previous page: Sys DB
Next page: gobgp CLI