openfaas / faas-cli

Official CLI for OpenFaaS
https://www.openfaas.com/
Other
798 stars 224 forks source link

Cloud Build fails because of a non-root user for the faas-cli container image #809

Closed utsavanand2 closed 4 years ago

utsavanand2 commented 4 years ago

Google Cloud Build fails because of lack of permission for the existing non-root user in the faas-cli docker image This issue is also the root cause for issue #804 Upon resolution, this would allow for successful CI/CD on Cloud Build

Expected Behaviour

The CI/CD steps using faas-cli's official container image should work out of the box for simple steps like pulling in templates, logging-in and deploying to OpenFaas.

Current Behaviour

The CI/CD steps fail while pulling in templates or logging in to OpenFaas with faas-cli.

Possible Solution

A possible solution can be to create a new Dockerfile named Dockerfile-root that uses a root user to invoke the faas-cli commands, and to make changes to the travis.yml so new root images can be published with the non-root faas-cli images.

Context

I've been trying to build and deploy OpenFaas functions with Google Cloud Platform's CI/CD solution named Cloud Build to a GKE Cluster running faas-netes.

Your Environment

utsavanand2 commented 4 years ago

Derek close