mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Set runtime to 'java' to have the pom.xml created (#217)
When the runtime is ['assumed'](11b5c4ce67/cli/init.go (L182-L188)) (i.e. not explicitly set to 'java'), the [pom.xml isn't created(85ae711447/cli/langs/java.go (L38-L45)) and [init fail](85ae711447/cli/langs/java.go (L99-L101)).
This commit is contained in:
committed by
Travis Reeder
parent
9e24f8227e
commit
b6bcb9cb01
@@ -5,7 +5,7 @@ This example will show you how to test and deploy Java code to Oracle Functions.
|
||||
|
||||
```sh
|
||||
# Initialize your function creating a func.yaml file
|
||||
fn init <DOCKERHUB_USERNAME>/hello-java
|
||||
fn init <DOCKERHUB_USERNAME>/hello-java --runtime java
|
||||
|
||||
# Test your function. This will run inside a container exactly how it will on the server
|
||||
fn run
|
||||
|
||||
Reference in New Issue
Block a user