Skip to content

jbayer/docker-cf-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

a simple Go webapp for deploying docker to Cloud Foundry or Lattice

hosted as a docker image at jbayer/lattice-app

To push to Lattice using ltc:

ltc create lattice-app jbayer/lattice-app

To push to Cloud Foundry using cf:

cf docker-push docker-app jbayer/lattice-app

Endpoints

/: a simple landing page displaying the index and uptime
/env: displays environment variables
/exit: instructs Lattice to exit with status code 1

To rebuild the dockerimage:

./build.sh

Assumes you have the go toolchain (with the ability to cross-compile to different platforms) and docker installed and pointing at your docker daemon.

About

A Docker Demo App for CF and Lattice

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 97.1%
  • Shell 2.9%