All Projects → apache → openwhisk-runtime-docker

apache / openwhisk-runtime-docker

Licence: Apache-2.0 license
Apache OpenWhisk SDK for building Docker "blackbox" runtimes

Programming Languages

python
139335 projects - #7 most used programming language
scala
5932 projects
shell
77523 projects
Dockerfile
14818 projects
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to openwhisk-runtime-docker

openwhisk-runtime-dotnet
Apache OpenWhisk Runtime .Net supports Apache OpenWhisk functions written in .Net languages
Stars: ✭ 23 (+0%)
Mutual labels:  functions, apache, faas, serverless-functions, serverless-architectures, openwhisk, functions-as-a-service, openwhisk-runtime
openwhisk-runtime-java
Apache OpenWhisk Runtime Java supports Apache OpenWhisk functions written in Java and other JVM-hosted languages
Stars: ✭ 43 (+86.96%)
Mutual labels:  functions, apache, faas, serverless-functions, serverless-architectures, openwhisk, functions-as-a-service, openwhisk-runtime
openwhisk-runtime-python
Apache OpenWhisk Runtime Python supports Apache OpenWhisk functions written in Python
Stars: ✭ 39 (+69.57%)
Mutual labels:  functions, apache, faas, serverless-functions, serverless-architectures, openwhisk, functions-as-a-service, openwhisk-runtime
openwhisk-runtime-go
Apache OpenWhisk Runtime Go supports Apache OpenWhisk functions written in Go
Stars: ✭ 31 (+34.78%)
Mutual labels:  functions, apache, faas, serverless-functions, serverless-architectures, openwhisk, functions-as-a-service, openwhisk-runtime
Openwhisk
Apache OpenWhisk is an open source serverless cloud platform
Stars: ✭ 5,499 (+23808.7%)
Mutual labels:  functions, apache, faas, serverless-functions, serverless-architectures, openwhisk, functions-as-a-service
openwhisk-catalog
Curated catalog of Apache OpenWhisk packages to interface with event producers and consumers
Stars: ✭ 30 (+30.43%)
Mutual labels:  apache, faas, serverless-functions, serverless-architectures, openwhisk, functions-as-a-service
Openwhisk Runtime Php
Apache OpenWhisk Runtime PHP supports Apache OpenWhisk functions written in PHP
Stars: ✭ 26 (+13.04%)
Mutual labels:  functions, apache, faas, serverless-functions, serverless-architectures, functions-as-a-service
Openwhisk Runtime Nodejs
Apache OpenWhisk Runtime NodeJS supports Apache OpenWhisk functions written in JavaScript for NodeJS
Stars: ✭ 43 (+86.96%)
Mutual labels:  functions, apache, faas, serverless-functions, serverless-architectures, functions-as-a-service
Openwhisk Deploy Kube
The Apache OpenWhisk Kubernetes Deployment repository supports deploying the Apache OpenWhisk system on Kubernetes and OpenShift clusters.
Stars: ✭ 231 (+904.35%)
Mutual labels:  functions, apache, faas, serverless-functions, serverless-architectures, functions-as-a-service
openwhisk-package-kafka
Apache OpenWhisk package for communicating with Kafka or Message Hub
Stars: ✭ 35 (+52.17%)
Mutual labels:  apache, faas, serverless-functions, serverless-architectures, openwhisk, functions-as-a-service
Openwhisk Apigateway
Apache OpenWhisk API Gateway service for exposing actions as REST interfaces.
Stars: ✭ 56 (+143.48%)
Mutual labels:  apache, faas, serverless-functions, serverless-architectures, functions-as-a-service
Openwhisk Cli
Apache OpenWhisk Command Line Interface (CLI)
Stars: ✭ 73 (+217.39%)
Mutual labels:  functions, apache, faas, serverless-functions, functions-as-a-service
Openwhisk Devtools
Development tools for building and deploying Apache OpenWhisk
Stars: ✭ 141 (+513.04%)
Mutual labels:  functions, apache, faas, serverless-functions, functions-as-a-service
Fission
Fast and Simple Serverless Functions for Kubernetes
Stars: ✭ 6,646 (+28795.65%)
Mutual labels:  functions, faas, serverless-functions, functions-as-a-service
Faas
OpenFaaS - Serverless Functions Made Simple
Stars: ✭ 20,820 (+90421.74%)
Mutual labels:  functions, faas, serverless-functions, functions-as-a-service
Jazz
Platform to develop and manage serverless applications at an enterprise scale!
Stars: ✭ 254 (+1004.35%)
Mutual labels:  faas, serverless-architectures, functions-as-a-service
openfaas-rstats-templates
OpenFaaS templates for R
Stars: ✭ 17 (-26.09%)
Mutual labels:  functions, faas, functions-as-a-service
Gofn
Function process via docker provider (serverless minimalist)
Stars: ✭ 134 (+482.61%)
Mutual labels:  functions, faas, functions-as-a-service
Dispatch
Dispatch is a framework for deploying and managing serverless style applications.
Stars: ✭ 529 (+2200%)
Mutual labels:  functions, faas
Microcule
SDK and CLI for spawning streaming stateless HTTP microservices in multiple programming languages
Stars: ✭ 454 (+1873.91%)
Mutual labels:  functions, faas

Apache OpenWhisk runtimes for docker

License Build Status

Give it a try today

Create a zip action with a exec in the root of the zip

echo \
'#!/bin/bash
echo "{\"message\":\"Hello World\"}"' > exec

For the return result, not only support dictionary but also support array

echo \
'#!/bin/bash
echo '["a", "b"]'' > exec

And support array result for sequence action as well, the first action's array result can be used as next action's input parameter

echo \
'#!/bin/bash
echo $1' > exec
chmod +x exec
zip myAction.zip exec

Create the action using the docker image for the runtime

wsk action update myAction myAction.zip --docker openwhisk/dockerskeleton:1.3.2

This works on any deployment of Apache OpenWhisk

To use on a deployment that contains the runtime deployed

Create action using --native

wsk action update myAction myAction.zip --native

Local development

./gradlew :core:actionProxy:distDocker :sdk:docker:distDocker

This will produce the image whisk/dockerskeleton

Build and Push image

docker login
./gradlew core:actionProxy:distDocker -PdockerImagePrefix=$prefix-user -PdockerRegistry=docker.io

Deploy OpenWhisk using ansible environment that contains the runtime of type blackboxes with name dockerskeleton Assuming you have OpenWhisk already deploy locally and OPENWHISK_HOME pointing to root directory of OpenWhisk core repository.

Set ROOTDIR to the root directory of this repository.

Redeploy OpenWhisk

cd $OPENWHISK_HOME/ansible
ANSIBLE_CMD="ansible-playbook -i ${ROOTDIR}/ansible/environments/local"
$ANSIBLE_CMD setup.yml
$ANSIBLE_CMD couchdb.yml
$ANSIBLE_CMD initdb.yml
$ANSIBLE_CMD wipe.yml
$ANSIBLE_CMD openwhisk.yml

Or you can use wskdev and create a soft link to the target ansible environment, for example:

ln -s ${ROOTDIR}/ansible/environments/local ${OPENWHISK_HOME}/ansible/environments/local-docker
wskdev fresh -t local-docker

To use as docker action push to your own dockerhub account

docker tag whisk/dockerskeleton $user_prefix/dockerskeleton
docker push $user_prefix/dockerskeleton

Then create the action using your image from dockerhub

wsk action update myAction myAction.zip --docker $user_prefix/dockerskeleton

The $user_prefix is usually your dockerhub user id.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].