Git Product home page Git Product logo

rhte-2019-hackathon-on-rhmi's Introduction

RHTE 2019 Hackathon - RHMI (Integreatly)

This repository contains a Solution Pattern that's compatible with the Integreatly Solution Explorer.

Development Setup

Setup requires installation of Node.js 10.15 or later. This enables a Git hook that verifies the asciidoc content and walkthrough config.

git clone https://github.com/evanshortiss/rhte-2019-hackathon-on-rhmi

cd rhte-2019-hackathon-on-rhmi

npm install

Run Locally

When running the Solution Explorer (webapp) locally you lose certain features, such as the injection of variables into asciidoc. Use local development to quickly preview changes, but for testing deploy on an actual RHMI cluster.

# Clone the Solution Explorer
git clone https://github.com/integr8ly/tutorial-web-app

# Clone this lab in the same directory as the Solution Explorer
git clone https://github.com/evanshortiss/rhte-2019-hackathon-on-rhmi

# Set WALKTHROUGH_LOCATIONS variable the Solution Explorer needs
export WALKTHROUGH_LOCATIONS=$(pwd)/rhte-2019-hackathon-on-rhmi/walkthroughs

# Start the Solution Explorer at http://localhost:3006
cd tutorial-web-app
yarn install
yarn start:dev

Deployment to an RHMI Cluster

Via OpenShift UI

  1. Sign in as admin to the cluster.
  2. Open the Solution Explorer project.
  3. Navigate to Resources > Other Resources using the side menu.
  4. Choose Web App in the dropdown.
  5. Choose Actions > Edit YAML for tutorial-web-app-operator in the list.
  6. Under spec.template.parameters (this block will also contain OPENSHIFT_HOST and some other variables) add the following:
WALKTHROUGH_LOCATIONS: 'https://github.com/integr8ly/tutorial-web-app-walkthroughs#v1.6.4,https://github.com/evanshortiss/rhte-2019-hackathon-on-rhmi.git'

Via OpenShift CLI

  1. Login as admin using oc login -u admin
  2. Run oc patch webapp tutorial-web-app-operator -n webapp --type=merge -p '{"spec":{"template":{"parameters":{"WALKTHROUGH_LOCATIONS":"https://github.com/evanshortiss/rhte-2019-hackathon-on-rhmi"}}}}'

PostgreSQL Setup

Run the db-setup.sh script in the content/ folder to setup a namespace and database that attendees will need to use to complete the lab.

rhte-2019-hackathon-on-rhmi's People

Contributors

evanshortiss avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.