Install

Prerequisites

  1. Docker

Spin up Cortex in your AWS account

# Download
curl -O https://raw.githubusercontent.com/cortexlabs/cortex/0.6/cortex.sh
# Change permissions
chmod +x cortex.sh
# Set AWS credentials
export AWS_ACCESS_KEY_ID=***
export AWS_SECRET_ACCESS_KEY=***
# Install Cortex
./cortex.sh install

Install the CLI

# Install the Cortex CLI
./cortex.sh install cli
# Get the operator endpoint
./cortex.sh info
# Configure the CLI
cortex configure

Create a deployment

# Clone the Cortex repository
git clone -b 0.6 https://github.com/cortexlabs/cortex.git
# Navigate to the iris classification example
cd cortex/examples/iris
# Deploy the model to the cluster
cortex deploy
# View the status of the deployment
cortex get --watch
# Classify a sample
cortex predict tensorflow tensorflow/irises.json

Cleanup

# Delete the deployment
cortex delete iris

See uninstall if you'd like to uninstall Cortex.