Skip to content

gusraggio/test-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test App - a simple Go webapp

Pushing the app to Cloud Foundry

cf push test-app

Endpoints

  • /: a simple landing page displaying the index and uptime
  • /env: displays environment variables
  • /exit: instructs the app to exit with status code 1
  • /index: returns the application index
  • /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 test-app -c "test-app --ports=7777,8888"

Pushing the app to CF as a Docker image

Simple App is also packaged as a docker image at cloudfoundry/test-app

cf push my-test-app -o cloudfoundry/test-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

Simple demo or test application for Cloud Foundry

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Go 96.1%
  • Shell 2.7%
  • Dockerfile 1.2%