GithubHelp home page GithubHelp logo

demo_cat_azure's Introduction

Is it cat ? Azure version.

This repo sets up your exisitng Ansible Tower install to deploy the "Is It Cat?" application in Azure.

"Is It Cat" is a simple image claissification Python app that comes with 2 (pre-trained) model versions: one that only recognizes cars (and thinks that some cats are cars), and one that recognizes cars and cats.

What you need

A Tower setup with an isolated node in Azure. This node needs git to be installed and the jmespath pip module in the default venv.

Go to the lab/ directory and complete up the lab-credentials.yml.txt file.

Rename it to lab-credentials.secret.yml
Encrypt it with ansible-vault if you feel like it.

Run: ansible-playbook --vault-password-file=vault-password.secret.txt tower_setup.yml

This will create an organization called "meteor", a project, an inventory, credential types, credentials and the template needed for the demo.

Run the demo

Just run the tower job template named: ML Cat - Azure (dev) - Provision

This will create the needed Azure components: ressource groups, virtnet, storage account and blob storage, loadbalancer, nics, and (by default, 2 VMs). You can use extra_vars to override the default values found in the default of the Azure role that is used (see: requirements.yml).

It will then download and install the specified version of the "Is it cat" application and its appropriate TensorFlow model on both VMs.

The extra_vars configured in the template are:
app: the url for the "Is it cat" app
version: the git tag of the app that will be deployed
az_count: the number of instances you want (scale up an existing deployement)
az_vm_size: the azure size of the VMs
object_store: tells the app which storage backend to use, for azure it's blob
scope: the prefix that will get use in azure for all the VMs

demo_cat_azure's People

Contributors

automaticdavid avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.