|
23 | 23 |
|
24 | 24 | ## Changelogs |
25 | 25 | - [Java 8 CHANGELOG.md](core/java8/CHANGELOG.md) |
| 26 | +- [Java 8 ActionLoop CHANGELOG.md](core/java8actionloop/CHANGELOG.md) |
| 27 | +- [Java 11 ActionLoop CHANGELOG.md](core/java11actionloop/CHANGELOG.md) |
26 | 28 |
|
27 | 29 |
|
28 | 30 | ## Quick Java Action |
@@ -103,30 +105,36 @@ wsk action invoke --result helloJava --param name World |
103 | 105 |
|
104 | 106 | 1. Start Docker Desktop (i.e., Docker daemon) |
105 | 107 |
|
106 | | -2. Build the Docker runtime image locally using Gradle: |
| 108 | +2. Build the Docker runtime image locally using Gradle for the different runtime versions: |
107 | 109 | ``` |
108 | 110 | ./gradlew core:java8:distDocker |
| 111 | +./gradlew core:java8actionloop:distDocker |
| 112 | +./gradlew core:java11actionloop:distDocker |
109 | 113 | ``` |
110 | | -This will produce the image `whisk/java8action` and push it to the local Docker Desktop registry with the `latest` tag. |
| 114 | +This will produce the image `whisk/java8action`, `whisk/actionloop-java-v8`, and `whisk/actionloop-java-v11`, and will push it to the local Docker Desktop registry with the `latest` tag. |
111 | 115 |
|
112 | 116 | 3. Verify the image was registered: |
113 | 117 | ``` |
114 | 118 | $ docker images whisk/* |
115 | | -REPOSITORY TAG IMAGE ID CREATED SIZE |
116 | | -whisk/java8action latest 35f90453905a 7 minutes ago 521MB |
| 119 | +REPOSITORY TAG IMAGE ID CREATED SIZE |
| 120 | +whisk/java8action latest e92776cb3b81 3 hours ago 587MB |
| 121 | +whisk/actionloop-java-v8 latest aca22c730f31 3 hours ago 426MB |
| 122 | +whisk/actionloop-java-v11 latest 921f4868f087 15 minutes ago 450MB |
117 | 123 | ``` |
118 | 124 |
|
119 | 125 | ### Build and Push image to a remote Docker registry |
120 | 126 |
|
121 | | -Build the Docker runtime image locally using Gradle supplying the image Prefix and Registry domain (default port): |
| 127 | +Build the Docker runtime images locally using Gradle supplying the image Prefix and Registry domain (default port): |
122 | 128 | ``` |
123 | 129 | docker login |
124 | 130 | ./gradlew core:java8:distDocker -PdockerImagePrefix=$prefix-user -PdockerRegistry=docker.io |
| 131 | +./gradlew core:java8actionloop:distDocker -PdockerImagePrefix=$prefix-user -PdockerRegistry=docker.io |
| 132 | +./gradlew core:java11actionloop:distDocker -PdockerImagePrefix=$prefix-user -PdockerRegistry=docker.io |
125 | 133 | ``` |
126 | 134 |
|
127 | 135 | ## Deploying the Java runtime image to OpenWhisk |
128 | 136 |
|
129 | | -Deploy OpenWhisk using ansible environment that contains the kind `java:8` |
| 137 | +Deploy OpenWhisk using ansible environment that contains the kind `java:8` and `java:11` |
130 | 138 | Assuming you have OpenWhisk already deployed locally and `OPENWHISK_HOME` pointing to root directory of OpenWhisk core repository. |
131 | 139 |
|
132 | 140 | Set `ROOTDIR` to the root directory of this repository. |
|
0 commit comments