1.0.0 • Published 7 years ago

comcast-ui v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

README

Assuming the document root directory of the web application is html/. If document root is different, Dockerfile must be updated accordingly.

To run the OCS Web UI in a docker container you need to create a docker compose file based of the docker-compose.template.yml file. The variables you need to provide values for are: 1. $CONTAINER_PORT - This is the port on localhost that the container will listen on. E.g., 8080. 2. $OCS_SERVICE_ROOT - The service root URL to the ocs api to use. E.g., https://ocs-stage.cmw.valtech.com/api

Assuming your compose file is named docker-compose.yml then run:

$ docker-compose -f docker-compose.yml up --build -d ocswebui

The scripts/run.sh script is run inside the container and currently just replaces the content of the index.html file with the service root URL to the OCS API (i.e., the value of $OCS_SERVICE_ROOT). The scripts/run.sh script shall of course be updated to populate this information properly to the UI Web application.

You can then access the web app at http://localhost:<$CONTAINER_PORT> which should respond with the value of $OCS_SERVICE_ROOT

This README would normally document whatever steps are necessary to get your application up and running.

What is this repository for?

How do I get set up?

  • Summary of set up
  • Configuration
  • Dependencies
  • Database configuration
  • How to run tests
  • Deployment instructions

Contribution guidelines

  • Writing tests
  • Code review
  • Other guidelines

Who do I talk to?

  • Repo owner or admin
  • Other community or team contact