GithubHelp home page GithubHelp logo

bbethell-1 / bookbag-aro-mobb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rh-mobb/bookbag-aro-mobb

0.0 0.0 0.0 19.78 MB

Bookbag for the MOBB ARO Workshop

License: Apache License 2.0

Shell 53.34% JavaScript 38.82% Dockerfile 7.84%

bookbag-aro-mobb's Introduction

Bookbag Template

Note
This project is based on OpenShift Homeroom: https://github.com/openshift-homeroom. This repository is based on https://github.com/openshift-homeroom/lab-asciidoc-sample. If you are using OpenShift Homeroom project already, please continue using it. If you want to integrate it with AgnosticD, follow the instructions in [If you Deploy Homeroom Directly from Agnosticd]

This repository should be used as a template for creating (converting) lab content to be used in Bookbag environments.

Using this Template

Instructions on how to use this Template are describe in [https://github.com/redhat-gpte-labs/bookbag-demo

In short, the steps are:

  1. Create a new repository using this one as a GitHub template.

  2. Update the build-template.yaml to point to your repository.

  3. Select your deployment template, with our without OpenShift console access.

  4. Customize terminal settings in envvars/gateway.sh if desired.

  5. Define which modules you want to include in your lab.

  6. List the modules in the workshop.yaml file.

  7. Edit the modules.yaml file to specify modules names and transitions.

  8. Create the modules Asciidoc files (workshop/content/*.adoc).

  9. Build and test your lab instructions

Building the Bookbag Image

  1. Create the bookbag BuildConfig and ImageStream:

    $ oc process -f build-template.yaml | oc apply -f -
  2. Build your image from local source or directly from Git source.

    To build from local source (aka "binary build"):

    $ oc start-build bookbag --follow --from-dir=.

    Build your Bookbag Image from Git (make sure you have set GIT_REPO in your build template!):

    $ oc start-build bookbag --follow

Test Deploy of the Bookbag image

  1. Define a variables file, workshop-vars.json, to define variables for testing your lab content:

    {
        "guid": "abcde",
        "example_var": 42,
        "ssh_command": "ssh [email protected]",
        "ssh_password": "p4ssword!1",
        "user": "lab-user",
        "user_info_messages": "Example workshop messages:\nHello, World",
        "my": {
            "deep": {
                "var": "flattened data"
            }
        }
    }
    Note
    Nested json data is now flattened and joined with a .. Use in your asciidoc: %my.deep.var%
  2. Process the deploy template with your workshop-vars.json:

    $ oc process -f deploy-template.yaml -p WORKSHOP_VARS="$(cat workshop-vars.json)" | oc apply -f -
  3. Get the Bookbag’s Route:

    $ oc get route bookbag
    NAME     HOST/PORT                                  PATH  SERVICES  PORT       TERMINATION    WILDCARD
    bookbag  bookbag-bookbag-demo.apps.ocp.example.com        bookbag   10080-tcp  edge/Redirect  None
  4. Use the Route hostname to open the Bookbag page in your browser.

bookbag-aro-mobb's People

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.