Skip to content

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

License

Notifications You must be signed in to change notification settings

deis/example-guestbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

  • A web frontend which is installed as a Deis Workflow
  • And a back-end Redis master (for storage) with a replicated set of Redis slaves

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:
$ helmc up
$ helmc repo add demo-charts https://github.com/deis/demo-charts
$ helmc up
  1. We install our back-end chart
$ helmc fetch demo-charts/redis-guestbook
$ helmc install redis-guestbook

Front-end install with deis cli

  1. Clone the repo:
$ git clone https://github.com/deis/example-guestbook.git
$ cd example-guestbook
  1. Create guestbook App:
$ deis create guestbook
  1. Set env vars so the App knows where to connect to redis cluster:
$ deis config:set GET_HOSTS_FROM=env REDIS_MASTER_SERVICE_HOST=redis-master.default REDIS_SLAVE_SERVICE_HOST=redis-slave.default PORT=80 -a guestbook
  1. Push to remote git repo:
$ git push deis master
  1. Open the App in your browser:
$ deis open

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published