Skip to content

ostefek99/infographic

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Red Hat Open Innovation Labs Infographic

Prerequisistes

  • NodeJS
  • npm

Running Locally

Run:

npm install
npm start

This will start up a local http server using the website directory as the root context of the front end application. This local development server will also host the API, which is stored in index.js and the lib directory.

Running in OpenShift

In OpenShift, the front end and back end are hosted as separate applications, using the templates in the templates directory.

Deploying to Production

On redhat.com, only the front end of the application is hosted. For more information on deploying to this environment, see the Updating Infographic document. (This document is available only to users with an @redhat.com email address.)

Important paths

  • /index.html: The public-facing infographic page. Clicking the "build" button takes the user to the Open Innovation Labs website.
  • /index.html?internal=true: The "internal" version of infographic. Clicking the "build" button kicks off an Ansible Tower job.
  • /stack: The node.js API that the front end hits when the user clicks the "build" button. This API passes the request on to Ansible Tower.

Icon conventions

  • [tool].png - Full-color image, 300x106px, top-left-aligned. Shown on main page.
  • [tool]-print.png - Full-color image, 525x150px, centered. Shown on the printable "my technology stack" page if the tool is selected.
  • [tool]-print-grey.png - Grayscale image, 525x150px, centered, about 25% opacity. Shown on the printable "my technology stack" page if the tool is not selected.

Some icons don't follow these conventions. When adding a new icon, prefer matching nearby icons over matching these conventions.

Configuration

Configuration of the running application is accomplished using environment variables. The configuration options are listed below:

  • INFOGRAPHIC_HTTP_PORT
    • Default: 8080
  • INFOGRAPHIC_HTTPS_PORT
    • Default: 8443
  • INFOGRAPHIC_HTTPS_KEY
    • Default: Undefined
  • INFOGRAPHIC_HTTPS_CERTIFICATE
    • Default: Undefined
  • INFOGRAPHIC_DIR
    • Default: website (Do not change unless you know what you are doing)
  • ANSIBLE_TOWER_URL
    • Default: NONE (Required)
    • REST API base URL for Ansible Tower
  • ANSIBLE_TOWER_TEMPLATE_ID
    • Default: NONE (Required)
    • The template ID of the template to be used in Ansible Tower
  • OPENSHIFT_API_URL
    • Default: NONE (Required)
    • The base URL of the OpenShift REST API
  • NODE_TLS_REJECT_UNAUTHORIZED
    • Default: 0 (SSL Verification enabled)
    • Enable/Disable unsafe SSL (disables certificate validation)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 60.9%
  • CSS 28.8%
  • JavaScript 10.3%