Giter Club home page Giter Club logo

functions's People

Contributors

lance avatar lkingland avatar matejvasek avatar nainaz avatar pmorie avatar rhuss avatar zroubalik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

functions's Issues

[bug] kn faas deploy tried to push the images to dockerhub even though registry was mentioned as quay.io

Describe the bug
After creating the the image for the Quarkus Function accepting events. kn faas deploy fails with the error message :

. exit status 1

To Reproduce
Steps to reproduce the behavior:

  1. kn faas init -l quarkus
  2. kn faas build -v -c
  3. kn faas deploy -v -c
  4. provide registry as quay.io/username

Expected behavior
image should get pushed to quay.io

Screenshots

kn faas deploy -v -c
Registry for Function images: quay.io/nainaz
Namespace: nsingh
Project path (/Users/naisingh/Documents/WorkSpaces/myfunctions/testdayquarkfunction): 
Building Function image:
Function image has been built, image: testdayquarkfunction
Pushing Function image to the registry:
/usr/local/bin/docker push testdayquarkfunction
The push refers to repository [docker.io/library/testdayquarkfunction]
83d85471d9f8: Preparing
82f9fb5c1cd2: Preparing
7cffc3c153c7: Preparing
7fc93d7f95e3: Preparing
adc9757997eb: Preparing
7c950d2655da: Preparing
6a2336482104: Preparing
46a41efcbd18: Preparing
97bd060e42f4: Preparing
3485805ce47c: Preparing
b0e2911c99f3: Preparing
7c950d2655da: Waiting
6a2336482104: Waiting
46a41efcbd18: Waiting
b0e2911c99f3: Waiting
3485805ce47c: Waiting
97bd060e42f4: Waiting
Error: denied: requested access to the resource is denied
. exit status 1

Desktop (please complete the following information):

  • OS: macOs
  • Browser if applicable [e.g. chrome, safari]

Additional context
Add any other context about the problem here.

[bug] kn faas deploy fails when used with quay.io

Describe the bug
For node runtime, after running kn faas build . Running kn faas deploy fails with
Error: knative deployer failed to wait for the service to become ready: timeout: service 'testdaynodefunc' not ready after 60 seconds

To Reproduce
Steps to reproduce the behavior:

  1. kn faas init -l node
  2. kn faas build
  3. docker images | grep
  4. kn faas deploy

Expected behavior
successful deploy of the function

Screenshots

Deploying Function to cluster:
Creating Knative Service: testdaynodefunc
Waiting for Knative Service to become ready
Error: knative deployer failed to wait for the service to become ready: timeout: service 'testdaynodefunc' not ready after 60 seconds

docker images | grep testday
testdayquarkfunction latest fb2b0f91d03c 40 years ago 394MB

Desktop (please complete the following information):

  • OS: macOs
  • Browser if applicable [e.g. chrome, safari]

Additional context
Looks like push to quay.io is part of deploy step and since quay.io repo needs to be made public beforehand. This fails due to unavailability of the image.

[feat] add support for Podman

Is your feature request related to a problem? Please describe.
It appears I'm forced to use Docker.

Describe the solution you'd like
Can you please add support for Podman. It can do Docker images but it can do more.

[bug] Permission denied

Describe the bug

Running:

➜  myfunc kn faas build --builder jvm                 

Gives me this error:

Error: executing lifecycle. This may be the result of using an untrusted builder: failed with status code: 1
output: 2020/10/29 10:55:03.837055 DEBUG:  Pulling image quay.io/boson/faas-quarkus-jvm-builder:latest
latest: Pulling from boson/faas-quarkus-jvm-builder
Digest: sha256:0e679564e76dd8372d7f9eb1eee32c122488a60e9ce96a10c1a9c717d248ea29
Status: Image is up to date for quay.io/boson/faas-quarkus-jvm-builder:latest
2020/10/29 10:55:06.585786 DEBUG:  Selected run image quay.io/boson/faas-stack-run:quarkus-jvm-v0.4.0
2020/10/29 10:55:08.462691 DEBUG:  Pulling image quay.io/boson/faas-stack-run:quarkus-jvm-v0.4.0
quarkus-jvm-v0.4.0: Pulling from boson/faas-stack-run
Digest: sha256:daf9aad634f3890f15e10d65e9a79d4570f77f9bf39dd99d3ecdf95e7cdca249
Status: Image is up to date for quay.io/boson/faas-stack-run:quarkus-jvm-v0.4.0
2020/10/29 10:55:11.183190 DEBUG:  Creating builder with the following buildpacks:
2020/10/29 10:55:11.183197 DEBUG:  -> [email protected]
2020/10/29 10:55:14.598319 DEBUG:  Pulling image buildpacksio/lifecycle:0.9.1
0.9.1: Pulling from buildpacksio/lifecycle
Digest: sha256:53bf0e18a734e0c4071aa39b950ed8841f82936e53fb2a0df56c6aa07f9c5023
Status: Image is up to date for buildpacksio/lifecycle:0.9.1
2020/10/29 10:55:18.299632 DEBUG:  Using build cache volume pack-cache-304bfe1a6217.build
2020/10/29 10:55:18.299651 INFO:   ===> DETECTING
[detector] com.redhat.faas.quarkus-jvm 0.0.1
2020/10/29 10:55:18.918341 INFO:   ===> ANALYZING
[analyzer] ERROR: failed to initialize docker client: failed to connect to docker socket: dial unix /var/run/docker.sock: connect: permission denied

Yes, I did docker login ..... before

[feat] DOCKER_REPO env var

Is your feature request related to a problem? Please describe.

The doc says:

Provide a container registry location where you have permission to create images. This will typically be, for example, a personal Docker Hub or Quay.io account. You will be prompted for this value.

and on the shell, I see:

➜  myfunc kn faas build
Building image: 
A registry for Function images is required. For example, 'docker.io/tigerteam'.

Registry for Function images: docker.io/matzew

Proposal

Perhaps introduce an envar for the user to set? The UX on the function seems a bit fishy, that I enter it after the build 🤷

E.g. in Knative we have KO_DOCKER_REPO... perhaps something like that ? or some cfg file ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.