├── .gitignore ├── CONTRIBUTING ├── Dockerfile ├── Jenkinsfile ├── LICENSE ├── README.md ├── chef ├── node.json ├── node_fast.json └── site-cookbooks │ └── rails-sample │ ├── attributes │ └── default.rb │ ├── files │ └── default │ │ ├── Gemfile.local │ │ └── bash_profile │ ├── recipes │ ├── app.rb │ ├── database.rb │ ├── default.rb │ ├── follower_wait.rb │ ├── leader_dbinit.rb │ ├── leader_delete.rb │ ├── leader_init.rb │ ├── nginx.rb │ ├── redmine_s3.rb │ ├── ruby.rb │ ├── unicorn.rb │ └── user.rb │ └── templates │ └── default │ ├── database.yml.erb │ ├── nginx.conf.erb │ ├── s3.yml.erb │ ├── unicorn.rb.erb │ └── unicorn.sh.erb ├── dm ├── deployment.yaml ├── http-load-balancer.jinja ├── scalable-web-app.jinja ├── storage-bucket.jinja └── web-servers.jinja ├── doc ├── delete-image.png ├── health-ip.png ├── leader-ssh.png ├── log-finished.png ├── log.png ├── packer.png ├── redmine.png └── view-lb.png ├── packer.json └── test ├── e2e.sh └── wfwait.sh /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/.gitignore -------------------------------------------------------------------------------- /CONTRIBUTING: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/CONTRIBUTING -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/Dockerfile -------------------------------------------------------------------------------- /Jenkinsfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/Jenkinsfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/README.md -------------------------------------------------------------------------------- /chef/node.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/chef/node.json -------------------------------------------------------------------------------- /chef/node_fast.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/chef/node_fast.json -------------------------------------------------------------------------------- /chef/site-cookbooks/rails-sample/attributes/default.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/chef/site-cookbooks/rails-sample/attributes/default.rb -------------------------------------------------------------------------------- /chef/site-cookbooks/rails-sample/files/default/Gemfile.local: -------------------------------------------------------------------------------- 1 | gem 'unicorn' 2 | -------------------------------------------------------------------------------- /chef/site-cookbooks/rails-sample/files/default/bash_profile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/chef/site-cookbooks/rails-sample/files/default/bash_profile -------------------------------------------------------------------------------- /chef/site-cookbooks/rails-sample/recipes/app.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/chef/site-cookbooks/rails-sample/recipes/app.rb -------------------------------------------------------------------------------- /chef/site-cookbooks/rails-sample/recipes/database.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/chef/site-cookbooks/rails-sample/recipes/database.rb -------------------------------------------------------------------------------- /chef/site-cookbooks/rails-sample/recipes/default.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/chef/site-cookbooks/rails-sample/recipes/default.rb -------------------------------------------------------------------------------- /chef/site-cookbooks/rails-sample/recipes/follower_wait.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/chef/site-cookbooks/rails-sample/recipes/follower_wait.rb -------------------------------------------------------------------------------- /chef/site-cookbooks/rails-sample/recipes/leader_dbinit.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/chef/site-cookbooks/rails-sample/recipes/leader_dbinit.rb -------------------------------------------------------------------------------- /chef/site-cookbooks/rails-sample/recipes/leader_delete.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/chef/site-cookbooks/rails-sample/recipes/leader_delete.rb -------------------------------------------------------------------------------- /chef/site-cookbooks/rails-sample/recipes/leader_init.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/chef/site-cookbooks/rails-sample/recipes/leader_init.rb -------------------------------------------------------------------------------- /chef/site-cookbooks/rails-sample/recipes/nginx.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/chef/site-cookbooks/rails-sample/recipes/nginx.rb -------------------------------------------------------------------------------- /chef/site-cookbooks/rails-sample/recipes/redmine_s3.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/chef/site-cookbooks/rails-sample/recipes/redmine_s3.rb -------------------------------------------------------------------------------- /chef/site-cookbooks/rails-sample/recipes/ruby.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/chef/site-cookbooks/rails-sample/recipes/ruby.rb -------------------------------------------------------------------------------- /chef/site-cookbooks/rails-sample/recipes/unicorn.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/chef/site-cookbooks/rails-sample/recipes/unicorn.rb -------------------------------------------------------------------------------- /chef/site-cookbooks/rails-sample/recipes/user.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/chef/site-cookbooks/rails-sample/recipes/user.rb -------------------------------------------------------------------------------- /chef/site-cookbooks/rails-sample/templates/default/database.yml.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/chef/site-cookbooks/rails-sample/templates/default/database.yml.erb -------------------------------------------------------------------------------- /chef/site-cookbooks/rails-sample/templates/default/nginx.conf.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/chef/site-cookbooks/rails-sample/templates/default/nginx.conf.erb -------------------------------------------------------------------------------- /chef/site-cookbooks/rails-sample/templates/default/s3.yml.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/chef/site-cookbooks/rails-sample/templates/default/s3.yml.erb -------------------------------------------------------------------------------- /chef/site-cookbooks/rails-sample/templates/default/unicorn.rb.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/chef/site-cookbooks/rails-sample/templates/default/unicorn.rb.erb -------------------------------------------------------------------------------- /chef/site-cookbooks/rails-sample/templates/default/unicorn.sh.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/chef/site-cookbooks/rails-sample/templates/default/unicorn.sh.erb -------------------------------------------------------------------------------- /dm/deployment.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/dm/deployment.yaml -------------------------------------------------------------------------------- /dm/http-load-balancer.jinja: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/dm/http-load-balancer.jinja -------------------------------------------------------------------------------- /dm/scalable-web-app.jinja: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/dm/scalable-web-app.jinja -------------------------------------------------------------------------------- /dm/storage-bucket.jinja: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/dm/storage-bucket.jinja -------------------------------------------------------------------------------- /dm/web-servers.jinja: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/dm/web-servers.jinja -------------------------------------------------------------------------------- /doc/delete-image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/doc/delete-image.png -------------------------------------------------------------------------------- /doc/health-ip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/doc/health-ip.png -------------------------------------------------------------------------------- /doc/leader-ssh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/doc/leader-ssh.png -------------------------------------------------------------------------------- /doc/log-finished.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/doc/log-finished.png -------------------------------------------------------------------------------- /doc/log.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/doc/log.png -------------------------------------------------------------------------------- /doc/packer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/doc/packer.png -------------------------------------------------------------------------------- /doc/redmine.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/doc/redmine.png -------------------------------------------------------------------------------- /doc/view-lb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/doc/view-lb.png -------------------------------------------------------------------------------- /packer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/packer.json -------------------------------------------------------------------------------- /test/e2e.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/test/e2e.sh -------------------------------------------------------------------------------- /test/wfwait.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/scalable-resilient-web-app/HEAD/test/wfwait.sh --------------------------------------------------------------------------------