Skip to content

Commit c3c8503

Browse files
Jiaxin FanJiaxin Fan
authored andcommitted
Add example json files
Add CI status Rebase resolved Squash commits Update top level README Rollback changes to ci.yaml
1 parent 5a2ae20 commit c3c8503

File tree

6 files changed

+20
-5
lines changed

6 files changed

+20
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ The `core/nodejsActionBase` folder contains the Node.js app server used to imple
9191
This will return the following runtime images with the following names: `action-nodejs-v14`, `action-nodejs-v16`, and `action-nodejs-v18`.
9292

9393
### Testing
94+
( A new section on building and testing the standalone runtime container is available here. )
9495

9596
- Install project dependencies from the top-level Apache OpenWhisk [project](https://github.com/apache/openwhisk), which ensures correct versions of dependent libraries are available in the Maven cache.
9697

@@ -113,5 +114,4 @@ This will return the following runtime images with the following names: `action-
113114

114115
```
115116
./gradlew :tests:test
116-
```
117-
An update about the details of verifying a standalone container can be found [here](https://github.com/apache/openwhisk-runtime-nodejs/tree/master/docs/users)
117+
```

docs/users/standalone/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
-->
1919

2020
# Tests for OpenWhisk NodeJS Runtime as Standalone Container
21-
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)
22-
2321
This README walks you through how to build, customise and test Apache OpenWhisk Node.js runtime images.
2422
## Pre-requisites
2523
- [Gradle](https://gradle.org/)
@@ -57,7 +55,7 @@ In our example, the `Action` container exposes `port 8080` (see the Dockerfile f
5755
```
5856
docker run --publish 3008:8080 --name=bloom_whisker -i -t action-nodejs-v18:latest
5957
```
60-
A simpler way is to map `port 80 ` on `localhost ` to the container's `port 8080`. The port number assigned to the HTTP protocol is `80`. Since we will be sending actions against the runtime using HTTP, using this number will allow us to omit the port in the request later. Oftentimes, `port 80 ` could already be occupied by another process. Without loss of generality, the following examples will use the arbitrarily chosen `port 3008`.
58+
A simpler way is to map `port 80` on `localhost` to the container's `port 8080`. The port number assigned to the HTTP protocol is `80`. Since we will be sending actions against the runtime using HTTP, using this number will allow us to omit the port in the request later. Oftentimes, `port 80` could already be occupied by another process. Without loss of generality, the following examples will use the arbitrarily chosen `port 3008`.
6159

6260
Lists all running containers
6361
```
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"value": { }
3+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"value": {
3+
"name": "js-helloworld-with-params",
4+
"main" : "main",
5+
"binary" : false,
6+
"code" : "function main(params) { return {payload: 'Hello ' + params.name + ' from ' + params.place + '!!!'} }"
7+
}
8+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"value": {
3+
"name": "Visitor",
4+
"place": "Earth"
5+
}
6+
}

0 commit comments

Comments
 (0)