Skip to content

cloudfoundry-samples/lattice-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lattice-App - a simple Go webapp

Lattice has been deprecated. Please use the new test-app.

Pushing the app to Cloud Foundry

cf push 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
/port: returns the local port the request was received on

Configure the app to listen on multiple ports

By providing a customer start command, you can configure the app to listen on multiple ports. The app responds the same way to each port.

cf push lattice-app -c "lattice-app --ports=7777,8888" 

Pushing the app to Lattice as a Docker image

Lattice-App is packaged as a docker image at cloudfoundry/lattice-app

To push to Lattice using ltc:

ltc create lattice-app cloudfoundry/lattice-app

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 Demo Application for Lattice

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published