Created
June 10, 2014 16:47
-
-
Save thesteve0/e081998303ce0100c836 to your computer and use it in GitHub Desktop.
Script from the dockercon talk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## ATOMIC DEMO ## | |
> In git/atomic-vagrant-demo | |
vagrant up --provider=libvirt | |
vagrant ssh atomic-0 | |
https://localhost:11001 | |
## GEARD DEMO ## | |
>BASIC APP | |
>on localhost | |
>in the git/nodejs-helloworld dir | |
gear build `pwd` nodejs-centos helloworld-app | |
docker tag helloworld-app localhost:5000/helloworld-app | |
docker push localhost:5000/helloworld-app | |
>on atomic-1 | |
docker pull testrepo:5000/helloworld-app | |
docker tag testrepo:5000/helloworld-app helloworld-app | |
sudo gear install helloworld-app hw-app -p "3000:3000" --start | |
>back on localhost | |
git commit -am 'Say goodbye' | |
gear build `pwd` nodejs-centos helloworld-app | |
docker tag helloworld-app localhost:5000/helloworld-app | |
docker push localhost:5000/helloworld-app | |
>on atomic-1 | |
sudo gear stop hw-app | |
docker pull testrepo:5000/helloworld-app | |
docker tag testrepo:5000/helloworld-app helloworld-app | |
sudo gear start hw-app | |
>Show that is now a system service on atomic-1 | |
>Show it in atomic | |
gear list-units localhost atomic-1 | |
>Shut it down use cockpit | |
COMPLICATED APP | |
>Show the JSON file | |
gear list-units localhost atomic-2 | |
>Add atomic-2 to the cockpit UI | |
>Demo map | |
>Ha-Proxy | |
>Start up Jmeter | |
>Go to graph | |
>Go to HA-Proxy | |
>Go atomic | |
Wrap up | |
Put Brian's slide back on the screen | |
==================== | |
Would be nice | |
I can't get HA-Proxy to serve using the other containers if I start them after the load test comes online | |
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | |
Pre start have the following things setup | |
1) Terminal with docker registry running | |
base directory | |
git/atomic-vagrant-demo | |
git/nodejs-helloworld | |
git/geard/contrib/demo-multi | |
docker run -p 5000:5000 pmorie/geard-demo-registry | |
2) Vagrant with Atomic-1 and atomic-2 loaded (and all the services) | |
3) Firefox with Atomic-1 loaded | |
brian's slides | |
https://localhost:11001 - make sure to set containers to running | |
http://atomic-1:3000 (but this may just be blank) | |
http://atomic-1:14000/ | |
http://atomic-1:15000/haproxy?stats;up | |
4) Gedit with the script and geard/contrib/demo-multi/deploy_parks_map.json | |
5) Jmeter with the test plan loaded |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment