red-hat-storage / ocs-training

Hands-on workshops for both system administrators and application developers interested in learning how to deploy, manage and use OpenShift Container Storage (OCS)
92 stars 125 forks source link

Noobaa Client vs macOS Version and HomeBrew #66

Closed jeanchlopez closed 5 years ago

jeanchlopez commented 5 years ago

Describe the bug noobaa client can not be installed via homebrew on macOS Sierra (10.12)

Section in which you face the issue MCG testing

To Reproduce Steps to reproduce the behavior:

  1. brew install noobaa/noobaa/noobaa
  2. Build error after go mod vendor

Expected behavior Works fine on macOS 10.14

Environment

Did you use OCP deployed by the RHPDS workshop? No

Additional context

jeanchlopez commented 5 years ago

Foudn a workaround that should be documented

curl -s https://api.github.com/repos/noobaa/noobaa-operator/releases/latest | grep "mac" | cut -d : -f 2,3 | tr -d \" | wget -qi - ; mv noobaa-mac-* noobaa chmod +x noobaa sudo su mv ./noobaa /usr/bin/ exit

noobaa . __ | \ | | | \ | | | | |/ / _ | . \ |/ \ / | \/ \ |/ \ | | |\ | () | () | |/ / (| | (| | _| _/_/ \/_/ _,_|\,_|

Install: install Install the operator and create the noobaa system uninstall Uninstall the operator and delete the system status Status of the operator and the system

Manage: backingstore Manage backing stores bucketclass Manage bucket classes obc Manage object bucket claims

Advanced: operator Deployment using operator system Manage noobaa systems bucket Manage noobaa buckets pvstore Manage noobaa pv store crd Deployment of CRDs olm OLM related commands

Other Commands: options Print the list of global flags version Show version

Use "noobaa --help" for more information about a given command.

noobaa version INFO[0000] CLI version: 2.0.4 INFO[0000] noobaa-image: noobaa/noobaa-core:5 INFO[0000] operator-image: noobaa/noobaa-operator:2.0.4

Note that there is a typo in the manual instruction for macOS Guide says curl -s https://api.github.com/repos/noobaa/noobaa-operator/releases/latest | grep "mac" | cut -d : -f 2,3 | tr -d \" | wget -qi - ; mv noobaa-linux-* noobaa

Should read curl -s https://api.github.com/repos/noobaa/noobaa-operator/releases/latest | grep "mac" | cut -d : -f 2,3 | tr -d \" | wget -qi - ; mv noobaa-mac-* noobaa

mulbc commented 5 years ago

Resolved by merging https://github.com/red-hat-storage/ocs-training/pull/64