~frankban/juju-quickstart/update-osx-docs

Viewing all changes in revision 134.

  • Committer: Francesco Banconi
  • Date: 2015-05-25 16:40:50 UTC
  • mfrom: (133.1.8 handle-gui-ports)
  • Revision ID: francesco.banconi@canonical.com-20150525164050-y6ophjd015gj1jw1
Handle Juju GUI server port.

The Juju GUI charm can be configured to listen
to customized ports (juju set juju-gui port=n).
This branch adds to quickstart the ability to
detect the port used by the GUI server, and
therefore connect to the right WebSocket and
Web URLs. Additionally handle the cases in which
the GUI is run in non secure mode.

Also add an option to deploy the GUI on a
customized port directly using quickstart.

Also add an hidden options (--gui-source)
intended for development use only. This allows
for building a specific GUI github branch
(e.g. frankban/my-feature-branch or juju/develop)
when installing the Juju GUI, and can be useful
while coding/QAing GUI branches.

Tests: `make check`.

QA:
- use the GUI as usual, to check for regressions:
  `devenv/bin/juju-quickstart`;
- change the juju-gui port and secure mode:
  `juju set juju-gui port=4242 secure=false`
- wait for the changes to take effect;
- use quickstart again to check that insecure mode
  and customized ports are detected:
  `devenv/bin/juju-quickstart`;
- destroy the environment;
- use quickstart again to server the GUI develop
  branch on a customized port:
  `devenv/bin/juju-quickstart --gui-port 8000 --gui-source juju/develop`;
- check that everything works correctly;
- destroy the environment;
- done, thank you!

R=
CC=
https://codereview.appspot.com/238540043

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: