kontena / chpharos

Pharos version switcher
https://get.pharos.sh/
Apache License 2.0
3 stars 4 forks source link

Installation instructions #39

Closed luisdavim closed 5 years ago

luisdavim commented 5 years ago

I ran:

brew install kontena/chpharos/chpharos

but chpharos was not installed, only chpharos-exec

and if I try to run:

$ chpharos-exec -i latest
error: You need to log in. Use: chpharos login
chpharos-exec: installation of version latest failed

I just want to be able to use pharos up -c cluster.yml with some local machines.

nevalla commented 5 years ago

Did you follow these instructions?

$ brew install kontena/chpharos/chpharos
....
==> Caveats
Add the following to the ~/.bash_profile or ~/.zshrc file:
  source /usr/local/opt/chpharos/share/chpharos/chpharos.sh

To enable auto-switching of Pharos versions specified by .pharos-version files,
add the following to ~/.bash_profile or ~/.zshrc:
  chpharos auto

Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completions have been installed to:
  /usr/local/share/zsh/site-functions
==> Summary
luisdavim commented 5 years ago

ok, after running source /usr/local/opt/chpharos/share/chpharos/chpharos.sh I cant run chpharos

but still:

$ chpharos install latest
error: You need to log in. Use: chpharos login

why do I need to login if all I want is to use it locally?

luisdavim commented 5 years ago

Also, after creating an account and logging in, I get:

$ chpharos install latest
Downloading 'pharos-cluster' (16045848 bytes) from https://get.pharos.sh/versions/download/pharos-cluster-darwin-amd64-1.3.3 ..
######################################################################## 100.0%
Verifying download SHA256 checksum.. OK
Downloading 'kubectl' (54938928 bytes) from https://storage.googleapis.com/kubernetes-release/release/v1.11.3/bin/darwin/amd64/kubectl ..
######################################################################## 100.0%
Verifying download SHA256 checksum.. OK
Downloading 'pharos_license' (11341 bytes) from https://raw.githubusercontent.com/kontena/pharos-cluster/v1.3.3/LICENSE ..
######################################################################## 100.0%
Verifying download SHA256 checksum.. OK
Downloading 'kubectl_license' (11358 bytes) from https://raw.githubusercontent.com/kubernetes/kubernetes/v1.11.3/LICENSE ..
######################################################################## 100.0%
Verifying download SHA256 checksum.. OK
Unknown argument -A
error: installation failed, use: chpharos list-remote to get a list of available versions.
nevalla commented 5 years ago

Can't reproduce this, but based on the error message I suppose the error is coming from here: https://github.com/kontena/chpharos/blob/master/share/chpharos/chpharos.sh#L681

Do you have ls alias or do you get the same error if running locally ls -A?

nevalla commented 5 years ago

Meanwhile you can download pharos-cluster binary manually by following these instructions: https://pharos.sh/docs/tools/pharos.html#other-installation-methods

You might want to rename pharos-cluster binary as pharos to match better with documentation.

luisdavim commented 5 years ago

Thanks, that solves my issue.