Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devigned/level1
DevOps Level 1: Azure + Rails + Ember + CosmosDB
https://github.com/devigned/level1
azure azure-cli cosmosdb ember keyvault rails
Last synced: about 2 months ago
JSON representation
DevOps Level 1: Azure + Rails + Ember + CosmosDB
- Host: GitHub
- URL: https://github.com/devigned/level1
- Owner: devigned
- License: mit
- Created: 2017-03-31T20:32:57.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-11T19:17:16.000Z (over 7 years ago)
- Last Synced: 2024-10-05T17:22:34.183Z (4 months ago)
- Topics: azure, azure-cli, cosmosdb, ember, keyvault, rails
- Language: Ruby
- Homepage:
- Size: 90.8 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Level 1: Deploy Azure Rails and Ember Todo App
As part of a blog series on deploying a Rails applications on Azure with increasing levels of DevOps maturity.
See: todo:add_linkThis Todo app runs an ember frontend which depends on a Rails backend. It illustrates the scripted level of
DevOps maturity (Level 1).## Required Tools
- [Azure CLI](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli)
- [jq](https://stedolan.github.io/jq/)
- Ruby / Rails
- Node.js## [Rails](./api-ruby)
- [Mongoid](https://github.com/mongodb/mongoid)
- Rails API Stack
- Active Model Serializers for JSONAPI serialization### Routes
- /api/v1/todo_lists
- /api/v1/todo_items## [Ember](./api-ruby/todo-ember)
- Standard## Azure Functionality Used:
- Azure CLI
- Azure Virtual Machines
- Key Vault Secrets
- Custom Script Extension
- Azure Document DB
- Azure Key Vault
- Azure Active Directory Service Principal
- (optional) Azure Scale Sets## How to run this sample
- Clone the repo and `cd` into the root of the repo
- Run `./scripts/provision`. This will build all of the Azure infrastructure.
- change `set -eu` in `./scripts/provision` to `set -eux` if you'd like see verbose / debug script output.
- From the root of the repo, `cd api-ruby`.
- Run `bundle exec cap production deploy:initial`. This will deploy the Ember / Rails Todo application to your Azure infrastructure.
- Run `echo http://$(az network public-ip show -g level1 -n level1-vmss --query 'dnsSettings.fqdn' -o tsv)` to get th