1. Docker

Installing Cortex in your AWS account

# Download
curl -O
# Change permissions
chmod +x
# Set AWS credentials
export AWS_ACCESS_KEY_ID=***
# Provision infrastructure on AWS and install Cortex
./ install

See cluster configuration to customize your installation.

Installing and configuring the CLI

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

Creating a deployment

# Clone the Cortex repository
git clone -b 0.7
# 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
# Get the API's endpoint
cortex get tensorflow
# Classify a sample
curl -k -X POST -H "Content-Type: application/json" \
-d '{ "samples": [ { "sepal_length": 5.2, "sepal_width": 3.6, "petal_length": 1.4, "petal_width": 0.3 } ] }' \
<API endpoint>


# Delete the deployment
cortex delete iris

See uninstall if you'd like to uninstall Cortex.