Rancher UI
Go to file
Vincent Fiduccia ecbd91c166 kube-system NS support 2016-02-24 17:27:49 -07:00
app kube-system NS support 2016-02-24 17:27:49 -07:00
blueprints Ember 1.13: About screen, deprecate cattle.* 2015-07-05 20:07:51 -07:00
config # This is a combination of 3 commits. 2016-02-23 10:42:14 -07:00
public kube-system NS support 2016-02-24 17:27:49 -07:00
scripts update build static to take new CDN cli option 2015-12-21 15:18:41 -07:00
server # This is a combination of 3 commits. 2016-02-23 10:42:14 -07:00
ssl Add selfsigned SSL for local devlopment 2016-02-01 13:11:46 -07:00
tests jshint 2016-02-23 10:53:00 -07:00
vendor Lauren changes from #470 2016-02-16 12:32:05 -07:00
.ackrc Ignore more folders 2014-12-17 18:05:08 -07:00
.bowerrc Initial Import 2014-12-17 14:19:03 -07:00
.drone.yml Update dind for build 2015-05-29 14:39:46 -07:00
.editorconfig Ember 1.12 updates 2015-06-26 01:37:39 -07:00
.ember-cli Add selfsigned SSL for local devlopment 2016-02-01 13:11:46 -07:00
.gitignore Initial Import 2014-12-17 14:19:03 -07:00
.gitmodules Locally hosted Open Sans, rancher-icons, update font-awesome 2015-09-14 13:58:21 -07:00
.jshintrc Removed the showdown markdown processor in favor of Commonmark. 2015-12-07 13:50:25 -07:00
.watchmanconfig Fix host label fields (rancher/rancher#1461), s/project/stack label (rancher/rancher#1483) 2015-07-13 17:38:54 -07:00
Dockerfile Made the build/bootstrap scripts 'wrap' friendly and setup for drone 2015-01-07 16:50:02 -07:00
LICENSE Remove notice from license 2015-02-25 15:23:22 -07:00
README.md More K8s support 2016-02-11 12:31:12 -07:00
bower.json Code-block component, Bump ember/liquid-fire 2016-01-14 18:32:03 -07:00
ember-cli-build.js Fix fingerprinting issue with ui.js 2016-02-18 13:41:57 -07:00
package.json WIP 2016-02-23 10:41:34 -07:00
testem.json Ember 1.12 updates 2015-06-26 01:37:39 -07:00

README.md

Rancher UI

Perhaps you like managing Cattle.

Build Status

Usage

Prerequisites:

If you're on a Mac and use Homebrew, you can follow these steps:

  brew install node watchman
  npm install -g bower

Setup:

  git clone 'https://github.com/rancher/ui'
  cd 'ui'
  ./scripts/update-dependencies

Run development server:

  npm start

Connect to UI at http://localhost:8000/ . The server automatically picks up file changes, restarts itself, and reloads the web browser. This is intended only for development, see below for distributing customizations.

Run development server pointed at another instance of the Rancher API

  RANCHER="http://rancher:8080/" npm start

and/or pointed at another instance of the Catalog API

  CATALOG="http://catalog:8088/" npm start

RANCHER and CATALOG can also be hostname[:port] or ip[:port].

Compiling for distribution

Rancher releases include a static copy of the UI passed in during build as a tarball. To generate that, run:

  ./scripts/build-static

Customizing

We highly suggest making customizations as an ember-cli addon rather than forking this repo, making a bunch of changes and then fighting conflicts to keep it up to date with upstream forever. ui-example-addon-machine is an example addon that adds a custom screen for a docker-machine driver. If there is no way for you to get to what you want to change from an addon, PRs to this repo that add generalized hooks so that you can are accepted.

Hosting remotely

If you want to customize the UI, re-packaging all of Rancher to distribute the UI is possible but not terribly convenient. Instead you can change Cattle to load the UI source from a remote web server:

  • Build with ./scripts/build-static -l -c 'your-server.com'
  • Upload ./dist/static/latest so that it's available at http://your-server.com/latest (you can rename the "latest" part with the -v flag)
  • If your Rancher is behind a SSL proxy, your-server must also respond to SSL requests
  • Change the value of http[s]://your-rancher:8080/v1/settings/api.ui.index to //yourserver.com/latest

Running Tests

  npm install -g ember-cli
  • ember test
  • ember test --server

Bugs & Issues

Please submit bugs and issues to rancher/rancher with a title starting with [UI] .

Or just click here to create a new issue.

License

Copyright (c) 2014-2016 Rancher Labs, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.