This repository contains a Solution Pattern that's compatible with the Integreatly Solution Explorer.
Refer to content/README
- Node.js 10+
- npm 6+
- yarn
The easiest way to install these requirements is to use nvm and then
nvm use 10
npm install -g yarn
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
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
- Sign in as
admin
to the cluster. - Open the
Solution Explorer
project. - Navigate to
Resources > Other Resources
using the side menu. - Choose
Web App
in the dropdown. - Choose
Actions > Edit YAML
fortutorial-web-app-operator
in the list. - Under
spec.template.parameters
(this block will also containOPENSHIFT_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'
- Login as
admin
usingoc login -u admin
- 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"}}}}'