cloudfoundry-samples/lattice-app

Name: lattice-app

Owner: Cloud Foundry Sample Applications

Description: A Demo Application for Lattice

Created: 2014-12-02 17:33:52.0

Updated: 2016-03-14 05:40:19.0

Pushed: 2016-05-09 18:36:36.0

Homepage: null

Size: 80

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Lattice-App - a simple Go webapp

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

Pushing the app to Cloud Foundry
ush 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.

ush 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:

create lattice-app cloudfoundry/lattice-app
To rebuild the dockerimage:
ild.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.


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.