diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f0c9aa80df..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,35 +0,0 @@ -branches: - only: - - master - -sudo: required - -language: go -go: "1.11.5" - -services: - - docker - -script: - - docker build . -f images/spark-base/Dockerfile -t cortexlabs/spark-base:latest - - docker build . -f images/tf-base/Dockerfile -t cortexlabs/tf-base:latest - - - ./build/images.sh images/operator operator - - ./build/images.sh images/spark spark - - ./build/images.sh images/spark-operator spark-operator - - ./build/images.sh images/tf-train tf-train - - ./build/images.sh images/tf-serve tf-serve - - ./build/images.sh images/tf-api tf-api - - ./build/images.sh images/nginx-controller nginx-controller - - ./build/images.sh images/nginx-backend nginx-backend - - ./build/images.sh images/fluentd fluentd - - ./build/images.sh images/argo-controller argo-controller - - ./build/images.sh images/argo-executor argo-executor - - - ./build/test.sh - - - sudo apt-get install -y apt-transport-https ca-certificates software-properties-common zip python3-pip python3-dev build-essential - - sudo pip3 install --upgrade pip - - pip3 install --upgrade awscli --user - - - ./build/cli.sh diff --git a/build/cli.sh b/build/cli.sh index 531ce5991b..bfd58ff7e0 100755 --- a/build/cli.sh +++ b/build/cli.sh @@ -17,7 +17,7 @@ set -euo pipefail -CORTEX_VERSION=master +CORTEX_VERSION=0.1.0 function build_and_upload() { set -euo pipefail diff --git a/build/images.sh b/build/images.sh index 09e5151086..bbe60f9cae 100755 --- a/build/images.sh +++ b/build/images.sh @@ -17,7 +17,7 @@ set -euo pipefail -CORTEX_VERSION=master +CORTEX_VERSION=0.1.0 dir=$1 image=$2 diff --git a/cortex.sh b/cortex.sh index 80e1e565ce..06b84a31b0 100755 --- a/cortex.sh +++ b/cortex.sh @@ -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) diff --git a/docs/applications/resources/aggregates.md b/docs/applications/resources/aggregates.md index 2a95bb0316..b60baa68b6 100644 --- a/docs/applications/resources/aggregates.md +++ b/docs/applications/resources/aggregates.md @@ -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 [`aggregators.yaml`](https://github.com/cortexlabs/cortex/blob/master/pkg/aggregators/aggregators.yaml) for a list of built-in aggregators. +See [`aggregators.yaml`](https://github.com/cortexlabs/cortex/blob/0.1/pkg/aggregators/aggregators.yaml) for a list of built-in aggregators. ## Example diff --git a/docs/applications/resources/aggregators.md b/docs/applications/resources/aggregators.md index 9d1138f0af..387efd855e 100644 --- a/docs/applications/resources/aggregators.md +++ b/docs/applications/resources/aggregators.md @@ -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 [`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 [`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`). diff --git a/docs/applications/resources/transformed-columns.md b/docs/applications/resources/transformed-columns.md index 31ab68f548..e99629e71b 100644 --- a/docs/applications/resources/transformed-columns.md +++ b/docs/applications/resources/transformed-columns.md @@ -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 [`transformers.yaml`](https://github.com/cortexlabs/cortex/blob/master/pkg/transformers/transformers.yaml) for a list of built-in transformers. +See [`transformers.yaml`](https://github.com/cortexlabs/cortex/blob/0.1/pkg/transformers/transformers.yaml) for a list of built-in transformers. ## Example diff --git a/docs/applications/resources/transformers.md b/docs/applications/resources/transformers.md index 2f363824d7..9ce71b494d 100644 --- a/docs/applications/resources/transformers.md +++ b/docs/applications/resources/transformers.md @@ -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 [`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 [`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`). diff --git a/docs/operator/config.md b/docs/operator/config.md index c6475e866c..a9aa645446 100644 --- a/docs/operator/config.md +++ b/docs/operator/config.md @@ -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" ``` diff --git a/docs/operator/install.md b/docs/operator/install.md index 9d8ff43796..2c68f5ecbd 100644 --- a/docs/operator/install.md +++ b/docs/operator/install.md @@ -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 @@ -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. diff --git a/docs/operator/uninstall.md b/docs/operator/uninstall.md index a1a09959a9..58cdeab08a 100644 --- a/docs/operator/uninstall.md +++ b/docs/operator/uninstall.md @@ -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 diff --git a/docs/quick-start.md b/docs/quick-start.md index 56af6af7e2..14f0d3120d 100644 --- a/docs/quick-start.md +++ b/docs/quick-start.md @@ -13,8 +13,9 @@ You can download pre-built applications from our repository: ```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). diff --git a/docs/summary.md b/docs/summary.md index c121639883..464b71b3aa 100644 --- a/docs/summary.md +++ b/docs/summary.md @@ -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) +* [Examples](https://github.com/cortexlabs/cortex/tree/0.1/examples) * [GitHub](https://github.com/cortexlabs/cortex) * [FAQ](faq.md) diff --git a/pkg/consts/consts.go b/pkg/consts/consts.go index d1216e71cb..c5823174e8 100644 --- a/pkg/consts/consts.go +++ b/pkg/consts/consts.go @@ -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)?)+"`) diff --git a/pkg/workloads/consts.py b/pkg/workloads/consts.py index aa6c57f6cf..2163e76d44 100644 --- a/pkg/workloads/consts.py +++ b/pkg/workloads/consts.py @@ -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"