imesh / incubator-openwhisk

Apache OpenWhisk is a serverless event-based programming service and an Apache Incubator project.

Home Page:http://openwhisk.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenWhisk

Build Status License Join Slack codecov

OpenWhisk is a cloud-first distributed event-based programming service. It provides a programming model to upload event handlers to a cloud service, and register the handlers to respond to various events. Learn more at http://openwhisk.incubator.apache.org.

Quick Start

The easiest way to start using OpenWhisk is to get Docker installed on on Mac, Windows or Linux. The Docker website has details instructions on getting the tools installed. This does not give you a prodcution deployment but gives you enough of the pieces to start writing functions and seeing them run.

git clone https://github.com/apache/incubator-openwhisk-devtools.git
cd docker-compose
make quick-start

For more detailed instructions or if you encounter problems see the OpenWhisk-dev tools project.

Vagrant Setup

A Vagrant machine is also avaiable to run OpenWhisk on Mac, Windows PC or GNU/Linux but isn't used by as much of the dev team so sometimes lags behind. Download and install VirtualBox and Vagrant for your operating system and architecture.

Note: For Windows, you may need to install an ssh client in order to use the command vagrant ssh. Cygwin works well for this, and Git Bash comes with an ssh client you can point to. If you run the command and no ssh is installed, Vagrant will give you some options to try.

Follow these step to run your first OpenWhisk Action:

# Clone openwhisk
git clone --depth=1 https://github.com/apache/incubator-openwhisk.git openwhisk

# Change directory to tools/vagrant
cd openwhisk/tools/vagrant

# Run script to create vm and run hello action
./hello

Wait for hello action output:

wsk action invoke /whisk.system/utils/echo -p message hello --result
{
    "message": "hello"
}

These steps were tested on Mac OS X El Capitan, Ubuntu 14.04.3 LTS and Windows using Vagrant. For more information about using OpenWhisk on Vagrant see the tools/vagrant/README.md

Native development

Docker must be natively installed in order to build and deploy OpenWhisk. If you plan to make contributions to OpenWhisk, we recommend either a Mac or Ubuntu environment.

Learn concepts and commands

Browse the documentation to learn more. Here are some topics you may be interested in:

Repository Structure

The OpenWhisk system is built from a number of components. The picture below groups the components by their GitHub repos. Please open issues for a component against the appropriate repo (if in doubt just open against the main openwhisk repo).

component/repo mapping

Issues

Report bugs, ask questions and request features here on GitHub.

Slack

You can also join the OpenWhisk Team on Slack https://openwhisk-team.slack.com and chat with developers. To get access to our public slack team, request an invite https://openwhisk.incubator.apache.org/slack.html.

About

Apache OpenWhisk is a serverless event-based programming service and an Apache Incubator project.

http://openwhisk.org

License:Apache License 2.0


Languages

Language:Scala 88.2%Language:JavaScript 4.3%Language:Python 3.4%Language:Shell 2.1%Language:Java 1.1%Language:Groovy 0.4%Language:Ruby 0.3%Language:Swift 0.2%Language:Batchfile 0.0%Language:Lua 0.0%