Skip to content

Commit 49ad315

Browse files
authored
Update versions (#2304)
1 parent fa34cd3 commit 49ad315

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+14054
-13683
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ commands:
1010
name: Install Go
1111
command: |
1212
sudo rm -rf /usr/local/go
13-
wget https://dl.google.com/go/go1.15.12.linux-amd64.tar.gz
14-
sudo tar -C /usr/local -xzf go1.15.12.linux-amd64.tar.gz
13+
wget https://dl.google.com/go/go1.16.5.linux-amd64.tar.gz
14+
sudo tar -C /usr/local -xzf go1.16.5.linux-amd64.tar.gz
1515
rm -rf go*.tar.gz
1616
echo 'export PATH=$PATH:/usr/local/go/bin' >> $BASH_ENV
1717
echo 'export PATH=$PATH:~/go/bin' >> $BASH_ENV

CONTRIBUTING.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ To install Go on linux, run:
2222

2323
```bash
2424
mkdir -p ~/bin && \
25-
wget https://dl.google.com/go/go1.14.7.linux-amd64.tar.gz && \
26-
sudo tar -xvf go1.14.7.linux-amd64.tar.gz && \
25+
wget https://dl.google.com/go/go1.16.5.linux-amd64.tar.gz && \
26+
sudo tar -xvf go1.16.5.linux-amd64.tar.gz && \
2727
sudo mv go /usr/local && \
28-
rm go1.14.7.linux-amd64.tar.gz && \
28+
rm go1.16.5.linux-amd64.tar.gz && \
2929
echo 'export PATH="/usr/local/go/bin:$HOME/go/bin:$PATH"' >> $HOME/.bashrc
3030
```
3131

@@ -135,10 +135,6 @@ export AWS_REGION="***" # you can use any AWS region you'd like, e.g. "us-west-
135135
export AWS_ACCESS_KEY_ID="***" # alternatively, you can remove this to use the default credentials chain on your machine
136136
export AWS_SECRET_ACCESS_KEY="***" # alternatively, you can remove this to use the default credentials chain on your machine
137137
export DEFAULT_USER_ARN="arn:aws:iam::<ACCOUNT_ID>:<AWS IAM ENTITY>" # (e.g. arn:aws-us-gov:iam::123456789:user/foo)
138-
139-
# If you are working on govcloud, you will need to set credentials from a public (non govcloud) account to access inferentia ECR
140-
# export NORMAL_REGION_AWS_ACCESS_KEY_ID="***"
141-
# export NORMAL_REGION_AWS_SECRET_ACCESS_KEY="***"
142138
```
143139

144140
Create the ECR registries:

Makefile

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,13 @@ operator-local-dbg:
5151

5252
# configure kubectl to point to the cluster specified in dev/config/cluster.yaml
5353
kubectl:
54-
@eval $$(python3 ./manager/cluster_config_env.py ./dev/config/cluster.yaml) && eval $$(python3 ./dev/create_user.py $$CORTEX_CLUSTER_NAME $$AWS_ACCOUNT_ID $$CORTEX_REGION) && eksctl utils write-kubeconfig --cluster="$$CORTEX_CLUSTER_NAME" --region="$$CORTEX_REGION" | (grep -v "saved kubeconfig as" | grep -v "using region" | grep -v "eksctl version" || true); eksctl create iamidentitymapping --region $$CORTEX_REGION --cluster $$CORTEX_CLUSTER_NAME --arn $$DEFAULT_USER_ARN --group system:masters --username $$DEFAULT_USER_ARN
54+
@eval $$(python3 ./manager/cluster_config_env.py ./dev/config/cluster.yaml) && eval $$(python3 ./dev/create_user.py $$CORTEX_CLUSTER_NAME $$AWS_ACCOUNT_ID $$CORTEX_REGION) && eksctl utils write-kubeconfig --cluster="$$CORTEX_CLUSTER_NAME" --region="$$CORTEX_REGION" --verbose=0 | (grep -v "saved kubeconfig as" || true); eksctl create iamidentitymapping --region $$CORTEX_REGION --cluster $$CORTEX_CLUSTER_NAME --arn $$DEFAULT_USER_ARN --group system:masters --username $$DEFAULT_USER_ARN
5555

5656
cluster-up:
5757
@$(MAKE) images-all
5858
@$(MAKE) cli
5959
@kill $(shell pgrep -f rerun) >/dev/null 2>&1 || true
6060
@eval $$(python3 ./manager/cluster_config_env.py ./dev/config/cluster.yaml) && eval $$(python3 ./dev/create_user.py $$CORTEX_CLUSTER_NAME $$AWS_ACCOUNT_ID $$CORTEX_REGION) && sleep 10 && ./bin/cortex cluster up ./dev/config/cluster.yaml --configure-env="$$CORTEX_CLUSTER_NAME"; eksctl create iamidentitymapping --region $$CORTEX_REGION --cluster $$CORTEX_CLUSTER_NAME --arn $$DEFAULT_USER_ARN --group system:masters --username $$DEFAULT_USER_ARN
61-
6261
@$(MAKE) kubectl
6362

6463
cluster-up-y:
@@ -68,6 +67,20 @@ cluster-up-y:
6867
@eval $$(python3 ./manager/cluster_config_env.py ./dev/config/cluster.yaml) && eval $$(python3 ./dev/create_user.py $$CORTEX_CLUSTER_NAME $$AWS_ACCOUNT_ID $$CORTEX_REGION) && sleep 10 && ./bin/cortex cluster up ./dev/config/cluster.yaml --configure-env="$$CORTEX_CLUSTER_NAME" --yes; eksctl create iamidentitymapping --region $$CORTEX_REGION --cluster $$CORTEX_CLUSTER_NAME --arn $$DEFAULT_USER_ARN --group system:masters --username $$DEFAULT_USER_ARN
6968
@$(MAKE) kubectl
7069

70+
cluster-configure:
71+
@$(MAKE) images-manager-skip-push
72+
@$(MAKE) cli
73+
@kill $(shell pgrep -f rerun) >/dev/null 2>&1 || true
74+
@eval $$(python3 ./manager/cluster_config_env.py ./dev/config/cluster.yaml) && eval $$(python3 ./dev/create_user.py $$CORTEX_CLUSTER_NAME $$AWS_ACCOUNT_ID $$CORTEX_REGION) && sleep 10 && ./bin/cortex cluster configure ./dev/config/cluster.yaml; eksctl create iamidentitymapping --region $$CORTEX_REGION --cluster $$CORTEX_CLUSTER_NAME --arn $$DEFAULT_USER_ARN --group system:masters --username $$DEFAULT_USER_ARN
75+
@$(MAKE) kubectl
76+
77+
cluster-configure-y:
78+
@$(MAKE) images-manager-skip-push
79+
@$(MAKE) cli
80+
@kill $(shell pgrep -f rerun) >/dev/null 2>&1 || true
81+
@eval $$(python3 ./manager/cluster_config_env.py ./dev/config/cluster.yaml) && eval $$(python3 ./dev/create_user.py $$CORTEX_CLUSTER_NAME $$AWS_ACCOUNT_ID $$CORTEX_REGION) && sleep 10 && ./bin/cortex cluster configure ./dev/config/cluster.yaml --yes; eksctl create iamidentitymapping --region $$CORTEX_REGION --cluster $$CORTEX_CLUSTER_NAME --arn $$DEFAULT_USER_ARN --group system:masters --username $$DEFAULT_USER_ARN
82+
@$(MAKE) kubectl
83+
7184
cluster-down:
7285
@$(MAKE) images-manager-skip-push
7386
@$(MAKE) cli

build/build-image.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ image=$3
2727
is_multi_arch=$4
2828
arch=$5
2929

30-
if [ "$image" == "inferentia" ]; then
31-
aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin 790709498068.dkr.ecr.us-west-2.amazonaws.com
32-
fi
33-
3430
if [ "$is_multi_arch" = "true" ]; then
3531
tag="manifest-${CORTEX_VERSION}-$arch"
3632
else

build/generate_ami_mapping.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ func main() {
222222
json.Unmarshal(jsonBytes, &k8sVersionMap)
223223
}
224224

225-
k8sVersion := "1.18"
225+
k8sVersion := "1.20"
226226

227227
if k8sVersionMap[k8sVersion] == nil {
228228
k8sVersionMap[k8sVersion] = map[string]map[string]string{}

build/images.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ non_dev_images=(
4545
"grafana"
4646
"event-exporter"
4747
"metrics-server"
48-
"inferentia"
49-
"nvidia"
48+
"nvidia-device-plugin"
49+
"neuron-device-plugin"
50+
"neuron-scheduler"
5051
"kubexit"
5152
)
5253

dev/registry.sh

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -84,19 +84,6 @@ function registry_login() {
8484
if [ "$is_registry_logged_in" = "false" ]; then
8585
blue_echo "Logging in to ECR..."
8686
aws ecr get-login-password --region $AWS_REGION | docker login --username AWS --password-stdin $registry_push_url
87-
88-
blue_echo "Logging in to 790709498068.dkr.ecr.us-west-2.amazonaws.com for inferentia..."
89-
set +e
90-
echo "$AWS_REGION" | grep "us-gov"
91-
is_gov_cloud=$?
92-
set -e
93-
if [ "$is_gov_cloud" == "0" ]; then
94-
# set NORMAL_REGION_AWS_ACCESS_KEY_ID and NORMAL_REGION_AWS_SECRET_ACCESS_KEY credentials from a regular AWS account (non govcloud) in your dev/config/env.sh
95-
AWS_ACCESS_KEY_ID=$NORMAL_REGION_AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY=$NORMAL_REGION_AWS_SECRET_ACCESS_KEY aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin 790709498068.dkr.ecr.us-west-2.amazonaws.com
96-
else
97-
aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin 790709498068.dkr.ecr.us-west-2.amazonaws.com
98-
fi
99-
10087
is_registry_logged_in="true"
10188
green_echo "Success\n"
10289
fi
@@ -152,15 +139,15 @@ function build_and_push() {
152139
docker buildx build $ROOT -f $dir/Dockerfile -t $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/cortexlabs/$image:$tag --platform $platforms $push_or_not_flag
153140

154141
if [ "$include_arm64_arch" = "true" ]; then
155-
green_echo "$finished_operation $image:$tag (amd64 and arm64)..."
142+
green_echo "$finished_operation $image:$tag (amd64 and arm64)"
156143
else
157-
green_echo "$finished_operation $image:$tag (amd64)..."
144+
green_echo "$finished_operation $image:$tag (amd64)"
158145
fi
159146

160147
if [[ " $images_that_can_run_locally " =~ " $image " ]] && [[ "$include_arm64_arch" == "false" ]]; then
161148
blue_echo "Exporting $image:$tag to local docker..."
162149
docker buildx build $ROOT -f $dir/Dockerfile -t cortexlabs/$image:$tag -t $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/cortexlabs/$image:$tag --platform $platforms --load
163-
green_echo "Exported $image:$tag to local docker..."
150+
green_echo "Exported $image:$tag to local docker"
164151
fi
165152
}
166153

0 commit comments

Comments
 (0)