/openshift-playbooks

Primary LanguageCSSCreative Commons Attribution Share Alike 4.0 InternationalCC-BY-SA-4.0

Documentation Site for OpenShift Playbooks

OpenShift Playbooks is a documentation site for OpenShift, maintained by the OpenShift community and moderated by the North America Emerging Technologies Practice in Red Hat Consulting.

Overview

This site is written in asciidoc format and is built using the Asciidoctor plugin for Jekyll.

Contribution

Quickstart Guide using Docker

  1. Setup Jekyll Asciidoc Docker

  2. Clone git repositories

    git clone https://github.com/rhtconsulting/rhc-ose.git
    git clone https://github.com/rhtconsulting/openshift-playbooks.git
  3. Create and run Jekyll Asciidoc Docker container

    /path/to/rhc-ose/docker/jekyll-asciidoc/run.sh -d=/path/to/openshift-playbooks
  4. Launch browser and find site using default docker-machine IP address, for example:

    http://<docker_ip>:4000/

Quickstart Guide using RHEL (or derivatives)

  1. Install necessary packages.

    sudo yum install -y libyaml-devel autoconf gcc-c++ readline-devel zlib-devel libffi-devel openssl-devel automake libtool bison sqlite-devel
  2. Install Node.js Version Manager (nvm — see https://github.com/creationix/nvm)

    curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash
  3. Install RVM

    Note
    For gnome-terminal users, you’ll need to do this additional step
  4. Install and use Ruby 2.0

    rvm install 2.0.0
    rvm use 2.0.0
  5. Install and set up RubyGems

    rvm rubygems latest
  6. Install bundler

    gem install bundler
  7. Install project dependencies

    bundle install
  8. Build site source

    bundle exec jekyll build
  9. Run local Jekyll server to view site

    bundle exec jekyll serve

Further Development

See our full contribution guide for more details