GoogleCloudPlatform / kube-jenkins-imager

Apache License 2.0
258 stars 82 forks source link

packer installation folder permission denied and docker not found #31

Closed nurfgun closed 6 years ago

nurfgun commented 6 years ago

I've encountered these three promblem while following the tutorial.

  1. No executioner in master when jenkins is set up.
    Initially set to 0, the number of executioner in the master node(?) had be increased.

  2. can't unzip packer to /usr/local/bin due to permission denial.

    # Install packer
    curl -L https://releases.hashicorp.com/packer/0.8.6/packer_0.8.6_linux_amd64.zip -o /tmp/packer.zip; unzip /tmp/packer.zip -d /usr/local/bin

    Had to change it to -d ~/packer and later called it as ~/packer/packer. Thought it was nasty but worked.

  3. command docker is not found. After that, 'docker command is not found' error. I could've tried installing it, but this was where I stopped.

First timer in Jenkins stuff and I have been through too mush for day one. Can anybody give me some pointer as to what I'm doing wrong?

Thanks.

nurfgun commented 6 years ago

My bad. I somehow set Label expression to master instead of gcp-packer which was incorrect anyway. I later read again #28 closely, changed the value to k8s, and voila! started working.

"gcloud docker push" in shell script needs to be changed to "gcloud docker --push"