openshift-labs / lab-build-your-own-operator

Build your own Kubernetes Operator
Apache License 2.0
7 stars 5 forks source link

Error: failed to output build image when running `operator-sdk build` #12

Open ryanj opened 5 years ago

ryanj commented 5 years ago

In the "Build and Run Your Operator" section of the Ansible-based BYO operator section, there is a bit about testing your code against an openshift cluster using operator-sdk build:

operator-sdk build memcached-operator:v0.0.1

Expected: This command should build the image a start the resulting operator code locally

Actual:

Error: failed to output build image memcached-operator:v0.0.1: (failed to exec []string{"docker", "build", ".", "-f", "build/Dockerfile", "-t", "memcached-operator:v0.0.1"}: exec: "docker": executable file not found in $PATH)

madorn commented 5 years ago

This may not be installing docker client. We should prob install Podman and Buildah instead.

madorn commented 5 years ago

operator-sdk should be bumped to 0.8.0 - then we can utilize buildah via operator-sdk build --image-builder

dlbewley commented 4 years ago

This is still a blocker.

It looks like version operator-sdk is still at v0.7.0, however the learn.openshift.com version of the lab has v0.15.2.

What's the entry point to address this? No mention of operator-sdk in the referenced dockerfile.