Sign inSign up

opendaylight/coe-cni

By opendaylight

•Updated over 7 years ago

Image
0

430

opendaylight/coe-cni repository overview

⁠odlovs-cni

⁠Building the container

Run make to build the container image. This basically just does a (multi-stage) docker build. You need to have a Docker version >= 17.05 for multi-stage builds⁠ (else you hit Error parsing reference: "golang:1 as builder" is not a valid repository/tag: invalid reference format)).

The built odlovs-cni binary is only in the container, not locally available (e.g. nothing in a bin/ directory).

In order to let odlovs-cni container image run properly in a K8s cluster, the following things should be considered:

  1. The k8s cluster config file should be exist under $HOME/.kube/config in each cluster node.
  2. The Pod-cidr should be set in the K8s cluster configuration.

Use the container/odlcni.yaml like this:

kubectl create -f odlcni.yaml

⁠Podman & Buildah instead of Docker

Instead of (a recent >= 17.05 version of Docker), you could also use podman⁠ :

sudo dnf remove "docker*" ; sudo dnf install podman-docker ; make

Or instead of completely removing Docker you can also use them in parallel:

sudo dnf install podman ; podman build -t  odlovs-cni .

although as of Jan 2019 there seem to be some issues with Podman⁠.

Alternatively you can try using buildah⁠ :

sudo dnf install buildah ; buildah bud -t odlovs-cni .`

Tag summary

Content type

Image

Digest

Size

37 MB

Last updated

over 7 years ago

docker pull opendaylight/coe-cni