picasso/devstack
Ian Wienand 20d75c95e7 Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I22490685609bd102d3c4e263777c753e65c843e4
2019-03-24 20:35:35 +00:00
..
files Issue #20: Keep devstack plugin in-tree 2016-12-13 02:26:36 +02:00
README.md Replace openstack.org git:// URLs with https:// 2019-03-24 20:35:35 +00:00
plugin.sh Fix service name in enabled service check 2017-01-09 20:46:31 +02:00
settings Fixing links from iron-io to openstack GitHub orgs 2017-01-18 11:15:58 +02:00

README.md

Enabling Picasso (Functions-as-a-Service) in DevStack

Install Glide

It is required to install Glide on the system in which you plan to run DevStack on, as the Functions service is written in Go and we must fetch dependencies during install. See more info at https://github.com/Masterminds/glide

Download DevStack

export DEVSTACK_DIR=~/devstack
git clone https://git.openstack.org/openstack-dev/devstack.git $DEVSTACK_DIR

Enable the Functions plugin

Enable the plugin by adding the following section to $DEVSTACK_DIR/local.conf

[[local|localrc]]

enable_plugin picasso git@github.com:openstack/picasso.git

# Picasso configuration
PICASSO_REPO=${PICASSO_REPO:-git@github.com:openstack/picasso.git}
PICASSO_BRANCH=${PICASSO_BRANCH:-master}
PICASSO_DIR=${PICASSO_DIR:-${DEST}/picasso}
PICASSO_PORT=${PICASSO_PORT:-10001}
PICASSO_LOG_LEVEL=${PICASSO_LOG_LEVEL:-DEBUG}
PICASSO_LOG_FILE=${PICASSO_LOG_FILE:-/var/log/picasso-api.log}

# Picasso client configuration
PICASSO_CLIENT_REPO=${PICASSO_CLIENT_REPO:-git@github.com:openstack/python-picassoclient.git}
PICASSO_CLIENT_DIR=${PICASSO_CLIENT_DIR:-${DEST}/python-picassoclient}
PICASSO_CLIENT_BRANCH=${PICASSO_CLIENT_BRANCH:-master}

# Functions parameters
FUNCTIONS_REPO=${FUNCTIONS_REPO:-git@github.com:iron-io/functions.git}
FUNCTIONS_BRANCH=${FUNCTIONS_BRANCH:-master}
FUNCTIONS_PORT=${FUNCTIONS_PORT:-10501}
FUNCTIONS_DB=${FUNCTIONS_DBPATH:-bolt://$FUNCTIONS_DIR/devstack.functions.storage.db?bucket=funcs}
FUNCTIONS_MQ=${FUNCTIONS_DBPATH:-bolt://$FUNCTIONS_DIR/devstack.functions.queue.db}
FUNCTIONS_LOG_LEVEL=${FUNCTIONS_LOG_LEVEL:-DEBUG}

DOCKERD_OPTS=${DOCKERD_OPTS:---dns 8.8.8.8 --dns 8.8.4.4 --storage-driver=overlay2 -H fd://}

Run the DevStack utility

 cd $DEVSTACK_DIR
 ./stack.sh