Skip to content

Instantly share code, notes, and snippets.

@Juice10
Created April 19, 2018 22:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Juice10/2e7ed7c33e1fde3ffd70cb6ca2c375fb to your computer and use it in GitHub Desktop.
Save Juice10/2e7ed7c33e1fde3ffd70cb6ca2c375fb to your computer and use it in GitHub Desktop.
Example manifest.yaml file with a Docker container for OpenWhisk
project:
# All of these params you will need to grab from your OpenWhisk credentials page
# In IBM Cloud Functions the url where you can get these is:
# https://console.bluemix.net/openwhisk/learn/api-key
apiHost: REPLACE-ME-WITH-YOUR-API-HOST-FOR-EXAMPLE
# example apiHost: openwhisk.ng.bluemix.net
credential: REPLACE-ME-WITH-YOUR-CREDENTIALS
# credential is the same as your API Key
namespace: REPLACE-ME-WITH-YOUR-NAMESPACE
# exmple namespace: cloud-foundry-org_cloud-foundry-space
packages:
# Packages group multiple actions into a package.
# You can call the packages whatever you'd like
MyOpenWhiskActionPackage:
version: 1.0
license: Apache-2.0
actions:
# You can list multiple actions here.
# Call the actions whatever you'd like `RubyAction` isn't that creative...
RubyAction:
docker: juice10/openwhisk-ruby
# make sure you link to a dockerhub username/repo here
# You can add more actions below, just uncomment the code and add your own...
# SecondAction:
# docker: your-username/docker-hub-repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment