The gluu-flask server is used to enable management of Gluu Server clusters. There is an ever-evolving wiki page which describes the design of the gluu-flask component.
$ sudo apt-get install libssl-dev python-dev swig
$ sudo apt-get build-dep openssl
Follow these instructions to install the package for Ubuntu Trusty 14.04 managed by docker.com: http://docs.docker.com/installation/ubuntulinux
For the impatient, just type:
$ curl -sSL https://get.docker.com/ubuntu/ | sudo sh
After install, you should see
$ sudo docker version
Client version: 1.5.0
Client API version: 1.17
Go version (client): go1.4.1
Git commit (client): a8a31ef
OS/Arch (client): linux/amd64
Server version: 1.5.0
Server API version: 1.17
Go version (server): go1.4.1
Git commit (server): a8a31ef
echo deb http://ppa.launchpad.net/saltstack/salt/ubuntu `lsb_release -sc` main | sudo tee /etc/apt/sources.list.d/saltstack.list
wget -q -O- "http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x4759FA960E27C0A6" | sudo apt-key add -
sudo apt-get update
sudo apt-get install -y salt-master
$ wget -q -O- https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py | python -
$ wget -q -O- https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python -
$ export PATH="/usr/local/bin:$PATH"
$ pip install virtualenv
$ git clone https://github.com/GluuFederation/gluu-flask.git
$ cd gluu-flask
$ virtualenv env
$ env/bin/pip install -r requirements.txt
To run the application, type the following command in the shell,
and make sure SALT_MASTER_IPADDR
environment variable is set and
pointed to salt-master IP address.
$ SALT_MASTER_IPADDR=xxx.xxx.xxx.xxx env/bin/python run.py
$ env/bin/py.test tests --cov api --cov-report term-missing
gluu-flask publishes swagger API documentation. You should be able view this interactive HTML page that lets you play with the API to some extent.