deis/example-guestbook

Name: example-guestbook

Owner: Deis

Description: A simple PHP app for Deis Workflow, the open source PaaS

Created: 2016-04-13 12:09:56.0

Updated: 2017-05-10 21:22:29.0

Pushed: 2017-05-10 21:56:42.0

Homepage: http://deis.com

Size: 11

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Guestbook Example

Docker Repository on Quay

This example shows how to build a simple, multi-tier web application using Helm Classic and Deis Workflow.

The example consists of:

The web frontend interacts with the Redis master API via JavaScript calls.

Prerequisites

This example requires a running Kubernetes cluster and you have installed Helm Classic and Deis Workflow.

Backend install with the Helm Classic

1) We add the remote repo to Helm:

lmc up
lmc repo add demo-charts https://github.com/deis/demo-charts
lmc up

2) We install our back-end chart

lmc fetch demo-charts/redis-guestbook
lmc install redis-guestbook
Front-end install with deis cli

1) Clone the repo:

t clone https://github.com/deis/example-guestbook.git
 example-guestbook

2) Create guestbook App:

is create guestbook

3) Set env vars so the App knows where to connect to redis cluster:

is config:set GET_HOSTS_FROM=env REDIS_MASTER_SERVICE_HOST=redis-master.default REDIS_SLAVE_SERVICE_HOST=redis-slave.default PORT=80 -a guestbook

4) Push to remote git repo:

t push deis master

5) Open the App in your browser:

is open

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.