Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cortex project analysis #2456

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion build/cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

set -euo pipefail

CORTEX_VERSION=master
CORTEX_VERSION=0.1.0

function build_and_upload() {
set -euo pipefail
Expand Down
2 changes: 1 addition & 1 deletion build/images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

set -euo pipefail

CORTEX_VERSION=master
CORTEX_VERSION=0.1.0

dir=$1
image=$2
Expand Down
2 changes: 1 addition & 1 deletion cortex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ if [ -f "$CORTEX_CONFIG" ]; then
source $CORTEX_CONFIG
fi

export CORTEX_VERSION_STABLE=master
export CORTEX_VERSION_STABLE=0.1.0

# Defaults
random_id=$(cat /dev/urandom | LC_CTYPE=C tr -dc 'a-z0-9' | fold -w 12 | head -n 1)
Expand Down
2 changes: 1 addition & 1 deletion docs/applications/resources/aggregates.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Note: the `columns` and `args` fields of the the aggregate must match the data t

Each `args` value may be the name of a constant or a literal value. Any string value will be assumed to be the name of a constant. To use a string literal as an arg, escape it with double quotes (e.g. `arg_name: "\"string literal\""`.

See <!-- CORTEX_VERSION_MINOR -->[`aggregators.yaml`](https://github.com/cortexlabs/cortex/blob/master/pkg/aggregators/aggregators.yaml) for a list of built-in aggregators.
See <!-- CORTEX_VERSION_MINOR -->[`aggregators.yaml`](https://github.com/cortexlabs/cortex/blob/0.1/pkg/aggregators/aggregators.yaml) for a list of built-in aggregators.

## Example

Expand Down
2 changes: 1 addition & 1 deletion docs/applications/resources/aggregators.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ See [Data Types](data-types.md) for a list of valid data types.

## Built-in Aggregators

Cortex includes common aggregators that can be used out of the box (see <!-- CORTEX_VERSION_MINOR -->[`aggregators.yaml`](https://github.com/cortexlabs/cortex/blob/master/pkg/aggregators/aggregators.yaml)). To use built-in aggregators, use the `cortex` namespace in the aggregator name (e.g. `cortex.normalize`).
Cortex includes common aggregators that can be used out of the box (see <!-- CORTEX_VERSION_MINOR -->[`aggregators.yaml`](https://github.com/cortexlabs/cortex/blob/0.1/pkg/aggregators/aggregators.yaml)). To use built-in aggregators, use the `cortex` namespace in the aggregator name (e.g. `cortex.normalize`).
2 changes: 1 addition & 1 deletion docs/applications/resources/transformed-columns.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Note: the `columns` and `args` fields of the the transformed column must match t

Each `args` value may be the name of an aggregate, the name of a constant, or a literal value. Any string value will be assumed to be the name of an aggregate or constant. To use a string literal as an arg, escape it with double quotes (e.g. `arg_name: "\"string literal\""`.

See <!-- CORTEX_VERSION_MINOR -->[`transformers.yaml`](https://github.com/cortexlabs/cortex/blob/master/pkg/transformers/transformers.yaml) for a list of built-in transformers.
See <!-- CORTEX_VERSION_MINOR -->[`transformers.yaml`](https://github.com/cortexlabs/cortex/blob/0.1/pkg/transformers/transformers.yaml) for a list of built-in transformers.

## Example

Expand Down
2 changes: 1 addition & 1 deletion docs/applications/resources/transformers.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ See [Data Types](datatypes.md) for a list of valid data types.

## Built-in Transformers

Cortex includes common transformers that can be used out of the box (see <!-- CORTEX_VERSION_MINOR -->[`transformers.yaml`](https://github.com/cortexlabs/cortex/blob/master/pkg/transformers/transformers.yaml)). To use built-in transformers, use the `cortex` namespace in the transformer name (e.g. `cortex.normalize`).
Cortex includes common transformers that can be used out of the box (see <!-- CORTEX_VERSION_MINOR -->[`transformers.yaml`](https://github.com/cortexlabs/cortex/blob/0.1/pkg/transformers/transformers.yaml)). To use built-in transformers, use the `cortex` namespace in the transformer name (e.g. `cortex.normalize`).
22 changes: 11 additions & 11 deletions docs/operator/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ export CORTEX_REGION="us-west-2"
export CORTEX_NAMESPACE="cortex"

# Image paths
export CORTEX_IMAGE_ARGO_CONTROLLER="cortexlabs/argo-controller:master"
export CORTEX_IMAGE_ARGO_EXECUTOR="cortexlabs/argo-executor:master"
export CORTEX_IMAGE_FLUENTD="cortexlabs/fluentd:master"
export CORTEX_IMAGE_NGINX_BACKEND="cortexlabs/nginx-backend:master"
export CORTEX_IMAGE_NGINX_CONTROLLER="cortexlabs/nginx-controller:master"
export CORTEX_IMAGE_OPERATOR="cortexlabs/operator:master"
export CORTEX_IMAGE_SPARK="cortexlabs/spark:master"
export CORTEX_IMAGE_SPARK_OPERATOR="cortexlabs/spark-operator:master"
export CORTEX_IMAGE_TF_SERVE="cortexlabs/tf-serve:master"
export CORTEX_IMAGE_TF_TRAIN="cortexlabs/tf-train:master"
export CORTEX_IMAGE_TF_API="cortexlabs/tf-api:master"
export CORTEX_IMAGE_ARGO_CONTROLLER="cortexlabs/argo-controller:0.1.0"
export CORTEX_IMAGE_ARGO_EXECUTOR="cortexlabs/argo-executor:0.1.0"
export CORTEX_IMAGE_FLUENTD="cortexlabs/fluentd:0.1.0"
export CORTEX_IMAGE_NGINX_BACKEND="cortexlabs/nginx-backend:0.1.0"
export CORTEX_IMAGE_NGINX_CONTROLLER="cortexlabs/nginx-controller:0.1.0"
export CORTEX_IMAGE_OPERATOR="cortexlabs/operator:0.1.0"
export CORTEX_IMAGE_SPARK="cortexlabs/spark:0.1.0"
export CORTEX_IMAGE_SPARK_OPERATOR="cortexlabs/spark-operator:0.1.0"
export CORTEX_IMAGE_TF_SERVE="cortexlabs/tf-serve:0.1.0"
export CORTEX_IMAGE_TF_TRAIN="cortexlabs/tf-train:0.1.0"
export CORTEX_IMAGE_TF_API="cortexlabs/tf-api:0.1.0"
```
4 changes: 3 additions & 1 deletion docs/operator/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Follow this [tutorial](https://aws.amazon.com/premiumsupport/knowledge-center/cr

```bash
# Download
curl -O https://raw.githubusercontent.com/cortexlabs/cortex/master/cortex.sh
curl -O https://raw.githubusercontent.com/cortexlabs/cortex/0.1/cortex.sh

# Change permissions
chmod +x cortex.sh
Expand All @@ -42,6 +42,8 @@ Cortex runs on Kubernetes. If you don't already have a Kubernetes cluster, [eksc
eksctl create cluster --name=cortex --nodes=2 --node-type=t3.medium
```

This cluster configuration will cost about $0.29 per hour.

## Operator

The Cortex operator is a service that runs on Kubernetes, translates declarative configuration into workloads, and orchestrates those workloads on the cluster. Its installation is configurable. For a full list of configuration options please refer to the [operator config](config.md) documentation.
Expand Down
2 changes: 1 addition & 1 deletion docs/operator/uninstall.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

```bash
# Download
curl -O https://raw.githubusercontent.com/cortexlabs/cortex/master/cortex.sh
curl -O https://raw.githubusercontent.com/cortexlabs/cortex/0.1/cortex.sh

# Change permissions
chmod +x cortex.sh
Expand Down
3 changes: 2 additions & 1 deletion docs/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ You can download pre-built applications from our repository:
<!-- CORTEX_VERSION_MINOR -->

```bash
git clone -b master https://github.com/cortexlabs/cortex.git
git clone -b 0.1 https://github.com/cortexlabs/cortex.git
cd cortex/examples/iris
cortex deploy
```

Jump to [deploy the application](#deploy-the-application).
Expand Down
2 changes: 1 addition & 1 deletion docs/summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* [Quick Start](quick-start.md)
* [Application Overview](applications/resources/overview.md)
* [CLI Commands](operator/cli.md)
* [Examples](https://github.com/cortexlabs/cortex/tree/master/examples) <!-- CORTEX_VERSION_MINOR -->
* [Examples](https://github.com/cortexlabs/cortex/tree/0.1/examples) <!-- CORTEX_VERSION_MINOR -->
* [GitHub](https://github.com/cortexlabs/cortex)
* [FAQ](faq.md)

Expand Down
2 changes: 1 addition & 1 deletion pkg/consts/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (

var (
// CORTEX_VERSION = "master"
CortexVersion = "master"
CortexVersion = "0.1.0"

SingleTypeStrRegex = regexp.MustCompile(`"(INT|FLOAT|STRING|BOOL)(_COLUMN)?"`)
CompoundTypeStrRegex = regexp.MustCompile(`"(INT|FLOAT|STRING|BOOL)(_COLUMN)?(\|(INT|FLOAT|STRING|BOOL)(_COLUMN)?)+"`)
Expand Down
2 changes: 1 addition & 1 deletion pkg/workloads/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

CORTEX_VERSION = "master"
CORTEX_VERSION = "0.1.0"

COLUMN_TYPE_INT = "INT_COLUMN"
COLUMN_TYPE_FLOAT = "FLOAT_COLUMN"
Expand Down