Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 701 Bytes

image-build.md

File metadata and controls

32 lines (23 loc) · 701 Bytes

Kube-compare image build

This image is also distributed in a container build, mostly for Red Hat downstream distribution purposes.

Building the container

make image-build

Copy binary locally

  • One option it to build the binary locally
make cross-build

Extracting the tool from the container

ENGINE=podman # works with "docker" too
IMAGE=kube-compare:latest
BASEOS=rhel9 # "rhel8" is an option too, for older systems
$ENGINE create --name kube-compare "$IMAGE"
$ENGINE cp "kube-compare:/usr/share/openshift/linux_amd64/kube-compare.$BASEOS" ./kubectl-cluster_compare
$ENGINE rm -f kube-compare

# run 
export PATH=$PWD:$PATH
oc cluster-compare -h