Public Repository

Last pushed: a year ago
Short Description
Example policy server admin interface to use with a pexip.com deployment
Full Description

This is a simple angularjs administration interface for the example policy server available at ianmorty/policy. The services can also be fronted with a reverse proxy e.g. jwilder/nginx-proxy

Example run command

docker run -d -e "VIRTUAL_HOST=ui.local" -v /home/myuser/policy_config:/home/policy/policy_server/ui/config -t -i ianmorty/policy-ui /sbin/my_init -- bash -l

where ui.local will resolve to the IP of the docker host (if using boot2docker, run boot2docker ip to see the actual IP used) and /home/myuser/policy_config will be a directory created locally (/home/myuser/policy_config) and mounted inside the container at /home/policy/policy_server/ui/config. This local directory should contain a file called config.js that should contain a single line stating the server address of the policy server as follows (don't forget the trailing semi-colon)

server_address = "policy.local";

Editing your local hosts file is usually sufficient to get this working along with the suggested reverse proxy command:

docker run -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock jwilder/nginx-proxy and then visiting ui.local in your browser.

Take a test drive at pexip.com/drive to try it out

The MIT License (MIT)

Copyright (c) 2015 Ian Mortimer

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Docker Pull Command
Owner
ianmorty

Comments (0)