Public | Automated Build

Last pushed: 2 years ago
Short Description
Full Description

Blackbox Actions

  1. Download and install the OpenWhisk CLI
  2. Install OpenWhisk Docker action skeleton.
  3. Add user code
  4. Build image
  5. Push image
  6. Test out action with CLI

The script is provided for your convenience. The following command sequence
runs the included example Docker action container using OpenWhisk.

# install ./dockerSkeleton with example
> wsk sdk install docker
# change working directory
> cd dockerSkeleton
# build/push, argument is your docker hub user name and a valid docker image name
> ./buildAndPush <dockerhub username>/whiskexample
# create docker action
> wsk action create dockerSkeletonExample --docker <dockerhub username>/whiskExample
# invoke created action
> wsk action invoke dockerSkeletonExample --blocking

The binary to execute must be located in the client folder. The name of the binary
(or shell script as in the standard bundle) must be action.

Docker Pull Command
Source Repository