Move/Rename Tripleo UI to RDO Director UI, setup GerritHub, setup jenkins CI
Change-Id: I60762473d5f8a9e0f2408874db5f2b5224947b14
This commit is contained in:
parent
bfc0e226cd
commit
b025a0f59f
5
.gitreview
Normal file
5
.gitreview
Normal file
@ -0,0 +1,5 @@
|
||||
[gerrit]
|
||||
host=review.gerrithub.io
|
||||
port=29418
|
||||
project=rdo-management/rdo-director-ui.git
|
||||
defaultbranch=master
|
21
README.md
21
README.md
@ -10,8 +10,8 @@
|
||||
|
||||
## Running the App
|
||||
|
||||
1. ```git clone https://github.com/jtomasek/tripleo_ui.git```
|
||||
2. ```cd tripleo_ui```
|
||||
1. ```git clone ssh://jtomasek@review.gerrithub.io:29418/rdo-management/rdo-director-ui```
|
||||
2. ```cd rdo-director-ui```
|
||||
3. Install Gulp globally ```sudo npm install -g gulp```
|
||||
4. Install dependencies ```npm install```
|
||||
5. Serve the App ```gulp```
|
||||
@ -22,6 +22,23 @@
|
||||
In case of errors during ```npm install```, remove node_modules dir and clean npm cache
|
||||
```npm cache clean```. Then run ```npm install``` again.
|
||||
|
||||
Temporary:
|
||||
reqwest has a temporary issue in latest version. Downgrade to 2.0.2 to work around ```npm install reqwest@2.0.2```.
|
||||
(https://github.com/ded/reqwest/issues/204#issuecomment-145295384)
|
||||
|
||||
|
||||
## Contributing
|
||||
|
||||
Use GerritHub for patches and reviews (http://docs.openstack.org/infra/manual/developers.html).
|
||||
|
||||
1. ```git clone ssh://jtomasek@review.gerrithub.io:29418/rdo-management/rdo-director-ui```
|
||||
2. Install git-review ```sudo dnf install git-review```
|
||||
3. Setup Gerrit by running ```git review -s```
|
||||
4. Develop on feature-branch locally
|
||||
5. run ```git review``` to push patch for review.
|
||||
6. Review and merge patches on GerritHub: https://review.gerrithub.io/#/q/project:rdo-management/rdo-director-ui
|
||||
|
||||
|
||||
## Tests
|
||||
|
||||
#### Single test run:
|
||||
|
4
dist/index.html
vendored
4
dist/index.html
vendored
@ -4,10 +4,10 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>TripleO UI</title>
|
||||
<title>RDO Director</title>
|
||||
<link rel="stylesheet" href="css/base.css" />
|
||||
</head>
|
||||
<body>
|
||||
<script src="js/tripleo_ui.js"></script>
|
||||
<script src="js/rdo_director_ui.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
99
jenkins-config.yml
Normal file
99
jenkins-config.yml
Normal file
@ -0,0 +1,99 @@
|
||||
# This file is used by the jenkins job
|
||||
# read: 'How it works' section at the bottom
|
||||
|
||||
|
||||
### config template ###
|
||||
# test_env: # top-level namespace used by khaleesi
|
||||
# env_name: # test config
|
||||
# Distro-Version: # test configuration for the distro-version
|
||||
# | setup: # how the testbed VM needs to be setup
|
||||
# | ' repos: # add the following repos
|
||||
# | ' - filename: repo-name.repo
|
||||
# | ' contents: |
|
||||
# | ' [section]
|
||||
# | ' contents
|
||||
# | ' of
|
||||
# | ' Repo
|
||||
#
|
||||
# | ' install: # install the following rpm and
|
||||
# | ' - rpm-abc # ensure latest is installed
|
||||
# | ' - rpm-foo
|
||||
# | ' - rpm-bar
|
||||
#
|
||||
# | ' remove: # delete the following rpms
|
||||
# | ' - rpm-foo
|
||||
# | ' - rpm-bar
|
||||
# | ' - rpm-baz
|
||||
# | ' pip: # use virtualenv --system-site-packages to
|
||||
# | ' overrides: # override system packages
|
||||
# | ' - pip-pkg-foo
|
||||
# | ' - pip-pkg-foo
|
||||
#
|
||||
# | run: > # how tests should be run
|
||||
# | run_command; another_command;
|
||||
# | ./run_tests.sh -N -P # all but last statement should terminated by ;
|
||||
#
|
||||
# | archive: # what files to archive
|
||||
# | - nosetest.xml
|
||||
#
|
||||
# NOTE: there must be a env_name: called virt: which will be used to run tests
|
||||
# in virtualenv when running tests in env_name fails
|
||||
|
||||
product:
|
||||
name: rhos
|
||||
repo_type: poodle
|
||||
version: 7
|
||||
full_version: 7.0
|
||||
config:
|
||||
enable_epel: y
|
||||
rpmrepo:
|
||||
RedHat: http://rhos-release.virt.bos.redhat.com/repos/rhos-release/
|
||||
|
||||
|
||||
rdo_director_ui_rpm_deps: [
|
||||
'gcc', 'git', 'gcc-c++', 'make', 'nodejs', 'npm'
|
||||
]
|
||||
|
||||
rdo_director_ui_virt_config:
|
||||
setup:
|
||||
install: "{{rdo_director_ui_rpm_deps}}"
|
||||
run: >
|
||||
set -o pipefail;
|
||||
npm install;
|
||||
npm test;
|
||||
npm run lint;
|
||||
archive:
|
||||
- ../logs/venv-testrun.log
|
||||
- tox.ini
|
||||
- requirements.txt
|
||||
- all-rpms.txt
|
||||
|
||||
### actual test_config: starts here: used by khaleesi ###
|
||||
### NOTE: test_config.virt must be defined ###
|
||||
test_config:
|
||||
virt:
|
||||
Fedora-20: "{{rdo_director_ui_virt_config}}"
|
||||
RedHat-7.0: "{{rdo_director_ui_virt_config}}"
|
||||
RedHat-7.1: "{{rdo_director_ui_virt_config}}"
|
||||
|
||||
# How this works!
|
||||
# ==============
|
||||
# This file is used by khaleesi[1] playbook unit_test.yml[2].
|
||||
# - The jenkins job checks out khaleesi, settings and this repo and
|
||||
# runs unit_test.yml playbook.
|
||||
# - The playbook reads this config file and
|
||||
# - adds repos in test_dependencies.rpm.repos
|
||||
# - installs all packages in test_dependencies.rpm.install
|
||||
# - removes all packages in test_dependencies.rpm.remove
|
||||
# - it then runs the test by executing the command specfied in
|
||||
# test_env.run NOTE all commands should terminate with a ';'
|
||||
# - if tests fail, the same is run in venv with pip packages.
|
||||
#
|
||||
# PIP overrides
|
||||
# -------------
|
||||
# When there is no corresponding rpm for a pip package, you can override that
|
||||
# particular package using the pip.override section. When you do so, make sure
|
||||
# the packaging team is notified about the new requirement.
|
||||
#
|
||||
# [1] https://github.com/redhat-openstack/khaleesi
|
||||
# [2] https://github.com/redhat-openstack/khaleesi/blob/master/playbooks/unit_test.yml
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "tripleo_ui",
|
||||
"name": "rdo-director-ui",
|
||||
"version": "0.0.1",
|
||||
"description": "TripleO UI - TripleO-based OpenStack deployment UI",
|
||||
"description": "RDO Director UI - TripleO-based OpenStack deployment UI",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"babel": "~5.5.8",
|
||||
@ -48,7 +48,7 @@
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/jtomasek/tripleo_ui"
|
||||
"url": "https://github.com/rdo-management/rdo-director-ui"
|
||||
},
|
||||
"keywords": [
|
||||
"tuskar-ui-extras",
|
||||
|
@ -76,7 +76,7 @@ export default class Login extends React.Component {
|
||||
<div className="col-md-6 col-sm-8 col-xs-12 col-md-offset-3 col-sm-offset-2">
|
||||
<div className="panel panel-default panel-login">
|
||||
<div className="panel-heading">
|
||||
<h1 className="panel-title">TripleO UI Login</h1>
|
||||
<h1 className="panel-title">RDO Director Login</h1>
|
||||
</div>
|
||||
<div className="panel-body">
|
||||
<FormErrorList errors={this.state.formErrors}/>
|
||||
|
@ -24,7 +24,7 @@ export default AuthenticatedComponent(class NavBar extends React.Component {
|
||||
<span className="icon-bar"></span>
|
||||
<span className="icon-bar"></span>
|
||||
</button>
|
||||
<a className="navbar-brand" href="#">TripleO UI</a>
|
||||
<a className="navbar-brand" href="#">RDO Director</a>
|
||||
</div>
|
||||
|
||||
<div className="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
||||
|
@ -6,7 +6,7 @@ class AuthTokenStorage {
|
||||
|
||||
_createWorkerInstance() {
|
||||
if(window && window.SharedWorker) {
|
||||
this.worker = new window.SharedWorker('/js/tripleo_ui_token_worker.js');
|
||||
this.worker = new window.SharedWorker('/js/rdo_director_ui_token_worker.js');
|
||||
this.worker.port.start();
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
module.exports = {
|
||||
devtool: 'source-map',
|
||||
output: {
|
||||
filename: 'tripleo_ui_token_worker.js',
|
||||
sourceMapFilename: 'tripleo_ui_token_worker.js.map'
|
||||
filename: 'rdo_director_ui_token_worker.js',
|
||||
sourceMapFilename: 'rdo_director_ui_token_worker.js.map'
|
||||
},
|
||||
module: {
|
||||
loaders: [
|
||||
|
@ -1,8 +1,8 @@
|
||||
module.exports = {
|
||||
devtool: 'source-map',
|
||||
output: {
|
||||
filename: 'tripleo_ui.js',
|
||||
sourceMapFilename: '../js/ripleo_ui.js.map'
|
||||
filename: 'rdo_director_ui.js',
|
||||
sourceMapFilename: '../js/rdo_director_ui.js.map'
|
||||
},
|
||||
module: {
|
||||
loaders: [
|
||||
|
Loading…
Reference in New Issue
Block a user