Skip to content

Commit 9578524

Browse files
committed
Update README.md
1 parent ef2c7ee commit 9578524

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,30 +104,33 @@ wsk action invoke --result helloJava --param name World
104104

105105
1. Start Docker Desktop (i.e., Docker daemon)
106106

107-
2. Build the Docker runtime image locally using Gradle:
107+
2. Build the Docker runtime image locally using Gradle for the different runtime versions:
108108
```
109109
./gradlew core:java8:distDocker
110+
./gradlew core:java11:distDocker
110111
```
111-
This will produce the image `whisk/java8action` and push it to the local Docker Desktop registry with the `latest` tag.
112+
This will produce the images with the following names: `whisk/java8action`, `whisk/java11action` and push it to the local Docker Desktop registry with the `latest` tag.
112113

113114
3. Verify the image was registered:
114115
```
115116
$ docker images whisk/*
116-
REPOSITORY TAG IMAGE ID CREATED SIZE
117-
whisk/java8action latest 35f90453905a 7 minutes ago 521MB
117+
REPOSITORY TAG IMAGE ID CREATED SIZE
118+
whisk/java8action latest 549c70f347f6 7 minutes ago 563MB
119+
whisk/java11action latest 31be41c73e5d 7 minutes ago 693MB
118120
```
119121

120122
### Build and Push image to a remote Docker registry
121123

122-
Build the Docker runtime image locally using Gradle supplying the image Prefix and Registry domain (default port):
124+
Build the Docker runtime images locally using Gradle supplying the image Prefix and Registry domain (default port):
123125
```
124126
docker login
125127
./gradlew core:java8:distDocker -PdockerImagePrefix=$prefix-user -PdockerRegistry=docker.io
128+
./gradlew core:java11:distDocker -PdockerImagePrefix=$prefix-user -PdockerRegistry=docker.io
126129
```
127130

128131
## Deploying the Java runtime image to OpenWhisk
129132

130-
Deploy OpenWhisk using ansible environment that contains the kind `java:8` or `java:11`
133+
Deploy OpenWhisk using ansible environment that contains the kind `java:8` and `java:11`
131134
Assuming you have OpenWhisk already deployed locally and `OPENWHISK_HOME` pointing to root directory of OpenWhisk core repository.
132135

133136
Set `ROOTDIR` to the root directory of this repository.

0 commit comments

Comments
 (0)