Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors in func.yaml make a deployment fail at runtime, not at compile time #125

Open
lenalebt opened this issue Feb 14, 2018 · 0 comments
Open

Comments

@lenalebt
Copy link

I had a func.yaml with the follwoing content:

name: mail
version: 0.0.3
runtime: java
cmd: com.espirit.fsi.example.ApplicationViaMail.java::handleRequest
build_image: fnproject/fn-java-fdk-build:jdk9-1.0.56
run_image: fnproject/fn-java-fdk:jdk9-1.0.56
format: http

an fn deploy, as well as fn test did not fail, however the docker image was not able to run because of the copy-paste-error in cmd, which contained the .java file extension which was wrong.

My expectation is that an fn test or fn deploy fails when it cannot run properly. One possible solution is to run the docker image locally before deploying it, although it may be possible to check the func.yaml direclty for correctness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant