You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above can also be achieved with [Postman](https://www.postman.com/) by setting the headers and body accordingly.
146
146
147
-
You noticed that we’re passing the same file `python-data-init-run.json` from function initialization request to trigger the function. That’s not necessary and not recommended since to trigger a function all we need is to pass the parameters of the function. So in the above example, it's prefered if we create a file called `python-data-params.json` that looks like the following:
147
+
You noticed that we’re passing the same file `python-data-init-run.json` from function initialization request to trigger the function. That’s not necessary and not recommended since to trigger a function all we need is to pass the parameters of the function. So in the above example, it's preferred if we create a file called `python-data-params.json` that looks like the following:
If your container still running from the previuous example you must stop it and re-run it before proceding. Remember that each python runtime can only hold one function (which cannot be overrided due to security reasons)
171
+
If your container still running from the previous example you must stop it and re-run it before proceeding. Remember that each python runtime can only hold one function (which cannot be overrided due to security reasons)
172
172
Create a json file called `python-data-init-params.json` which will contain the function to be initialized that looks like the following:
173
173
```json
174
174
{
@@ -180,7 +180,7 @@ Create a json file called `python-data-init-params.json` which will contain the
180
180
}
181
181
}
182
182
```
183
-
Also create a json file `python-data-run-params.json` which will contain the parameters to the function used to trigger it. Notice here we're creating 2 separate file from the beginning since this is good practice to make the disticntion between what needs to be send via the `init` API and what needs to be sent via the `run` API:
183
+
Also create a json file `python-data-run-params.json` which will contain the parameters to the function used to trigger it. Notice here we're creating 2 separate file from the beginning since this is good practice to make the distinction between what needs to be send via the `init` API and what needs to be sent via the `run` API:
184
184
```json
185
185
{
186
186
"value": {
@@ -358,7 +358,7 @@ with a hosted OpenWhisk installation.
358
358
### Using Gradle to push to a Docker Registry
359
359
360
360
The Gradle build parameters `dockerImagePrefix` and `dockerRegistry`
361
-
can be configured for your Docker Registery. Make usre you are logged
361
+
can be configured for your Docker Registry. Make sure you are logged
362
362
in first with the `docker` CLI.
363
363
364
364
- Use the `docker` CLI to login. The following assume you will substitute `$DOCKER_USER` with an appropriate value.
0 commit comments