Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.
/ java-hello Public archive

Sample Java hello function for riff v0.1.3 or later

License

Notifications You must be signed in to change notification settings

vmware-archive/java-hello

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

riff sample: Java Hello

This sample requires riff v0.1.3 or later.

create locally

riff function create java hello \
  --local-path . \
  --image dev.local/java-hello:v1

create from git repo, pushing image to DockerHub

riff function create java hello \
    --git-repo https://github.com/projectriff-samples/java-hello.git \
    --image $DOCKER_ID/java-hello:v1 \
    --verbose

To set $DOCKER_ID do export DOCKER_ID=your-docker-id

create from git repo, pushing image to GCR

riff function create java hello \
    --git-repo https://github.com/projectriff-samples/java-hello.git \
    --image gcr.io/$GCP_PROJECT/java-hello:v1 \
    --verbose

To set $GCP_PROJECT do export GCP_PROGECT=your-GCP-project-id

invoke

riff service invoke hello --text -- -w '\n' -d world

About

Sample Java hello function for riff v0.1.3 or later

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages