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:
Use the container/odlcni.yaml like this:
kubectl create -f odlcni.yaml
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 .`
Content type
Image
Digest
Size
37 MB
Last updated
over 7 years ago
docker pull opendaylight/coe-cni