262life / bob

Bash on Board! - General purpose container for Kubernetes
https://262.life/bob/
Apache License 2.0
5 stars 5 forks source link

Contributing guide with build instructions. #9

Closed mookkiah closed 3 years ago

mookkiah commented 4 years ago

Thanks for having gitpod support.

I tried to experiment and got errors. I guess there is more to be done before start executing the commands I tried. Also noticed contributing.md is not there yet as mentioned ind readme.md.

Here is the gitpod console...

itpod /workspace/bob $  HISTFILE=/workspace/.gitpod/cmd-0 history -r; {
> set +x; clear
> } && {
> set +x;clear
> 
> # Added to bashrc so each shell gets the settings
> cat <<EOD >> ~/.bashrc
> function gt() {
>   TAG=\${1}; git tag --delete \${TAG} 2>/dev/null; git push  --delete origin \${TAG} 2>/dev/null; git tag  \${TAG}; git push --tags
> }
> 
> function deploy() {
>   gq https://cloud.okteto.com/graphql -H "Authorization: Bearer \$OKTETO_TOKEN" -q 'mutation deployGitRepository(\$name: String!, \$space: String!, \$repository: String!, \$branch: String!) {deployGitRepository( name: \$name, space: \$space, repository: \$repository, branch: \$branch ) {id, status}}' -v 'name=bob' -v 'space=' -v 'repository=https://github.com/BobDotMe/bob' -v 'branch=master'
Usage:
  okteto login [url] [flags]

Flags:
  -h, --help           help for login
  -t, --token string   API token for authentication.  (optional)

Global Flags:
  -l, --loglevel string   amount of information outputted (debug, info, warn, error) (default "warn")

 x  flag needs an argument: --token
cp: cannot stat '/home/gitpod/.kube/config': No such file or directory
flag needs an argument: 'p' in -p
See 'docker login --help'.
gitpod /workspace/bob $ ls
CODENAME  distro  dockerfiles  docs  examples  files  helm  LICENSE  okteto-pipeline.yml  okteto.yaml  plugins  README.md  VERSION  work
gitpod /workspace/bob $ kubec
kubeconfig  kubectl     
gitpod /workspace/bob $ kubectl get pod
ls: cannot access '/home/gitpod/.kube/*.cfg': No such file or directory
ls: cannot access '/home/gitpod/.kube/config': No such file or directory
The connection to the server localhost:8080 was refused - did you specify the right host or port?
gitpod /workspace/bob $ docker ps
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
gitpod /workspace/bob $ cd helm/
gitpod /workspace/bob/helm $ helm package
ls: cannot access '/home/gitpod/.kube/*.cfg': No such file or directory
ls: cannot access '/home/gitpod/.kube/config': No such file or directory
bash: /usr/local/bin/helm: No such file or directory
gitpod /workspace/bob/helm $ ls
chart
gitpod /workspace/bob/helm $ cd chart
gitpod /workspace/bob/helm/chart $ ls
Chart.yaml  okteto-values.yaml  templates  values.yaml
gitpod /workspace/bob/helm/chart $ helm package
ls: cannot access '/home/gitpod/.kube/*.cfg': No such file or directory
ls: cannot access '/home/gitpod/.kube/config': No such file or directory
bash: /usr/local/bin/helm: No such file or directory
gitpod /workspace/bob/helm/chart $ 
rsliotta commented 4 years ago

I'll take a look.

Doing the development is a bit different on the cloud. You cannot yet do everything in gitpod. Also I think a bit of work would need to be done for the okteto. Probably hard coded at the moment.

mookkiah commented 4 years ago

Noted. I will try clone locally and see how to make a small change and test it out... If I am able to figure that out, I may contribute by writing contributing.md file.

rsliotta commented 3 years ago

@mookkiah Please try our new getting started guide available now...