awx/awx/ui_next
softwarefactory-project-zuul[bot] f41852c3ee
Merge pull request #6709 from marshmalien/6530-wf-node-wf
Add workflow details to node view modal

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2020-04-16 20:54:25 +00:00
..
2020-03-17 13:44:33 -04:00
2019-10-10 17:37:27 -04:00
2019-11-12 13:04:00 -05:00
2020-04-07 18:07:47 -04:00
2020-04-07 18:07:47 -04:00
2020-04-06 11:36:41 -04:00
2020-04-06 11:36:41 -04:00

AWX-PF

Requirements

  • node 10.x LTS, npm 6.x LTS, make, git

Usage

  • git clone git@github.com:ansible/awx.git
  • cd awx/ui_next
  • npm install
  • npm start
  • visit https://127.0.0.1:3001/

note: These instructions assume you have the awx development api server up and running at localhost:8043. You can use a different backend server with the TARGET_HOST and TARGET_PORT environment variables when starting the development server:

# use a non-default host and port when starting the development server
TARGET_HOST='ec2-awx.amazonaws.com' TARGET_PORT='443' npm run start

Unit Tests

To run the unit tests on files that you've changed:

  • npm test

To run a single test (in this case the login page test):

  • npm test -- src/screens/Login/Login.test.jsx

note: Once the test watcher is up and running you can hit a to run all the tests

CI Container

To run:

cd awx/awx/ui_next
docker build -t awx-ui-next .
docker run --name tools_ui_next_1 --network tools_default --link 'tools_awx_1:awx' -e TARGET_HOST=awx -p '3001:3001' --rm -v $(pwd)/src:/ui_next/src awx-ui-next

note: This is for CI, test systems, zuul, etc. For local development, see usage