Lattice CLI
##Setup:
Make sure you have go installed and your $GOPATH is properly set. Then run:
go get -u github.com/pivotal-cf-experimental/lattice-cli/ltc
This installs or updates the ltc
binary to $GOPATH/bin.
##Commands:
###Target a Lattice domain:
ltc target LATTICE_DOMAIN
###Start a docker app on Lattice:
ltc start APP_NAME -i DOCKER_IMAGE -- START_COMMAND [APP_ARG1 APP_ARG2...]
###Tail an app's logs on Lattice:
ltc logs APP_NAME
###Example Usage with Lattice on Vagrant Lattice:
ltc target 192.168.11.11.xip.io
ltc start lattice-app -i "docker:///cloudfoundry/lattice-app" -- /lattice-app --message="hello"
ltc logs lattice-app
To view the app in a browser visit http://lattice-app.192.168.11.11.xip.io/
To scale up the app:
ltc scale lattice-app -i 5
Refresh the browser to see the requests routing to different Docker containers running lattice-app.