File tree Expand file tree Collapse file tree 5 files changed +44
-15
lines changed Expand file tree Collapse file tree 5 files changed +44
-15
lines changed Original file line number Diff line number Diff line change @@ -27,24 +27,37 @@ s3://tornasole-binaries-use1/tornasole_rules/py3/
27
27
```
28
28
29
29
## Containers
30
+ REGION below can be one of
31
+ ```
32
+ us-east-1
33
+ us-east-2
34
+ us-west-1
35
+ us-west-2
36
+ ap-south-1
37
+ ap-northeast-2
38
+ ap-southeast-1
39
+ ap-southeast-2
40
+ ap-northeast-1
41
+ ca-central-1
42
+ eu-central-1
43
+ eu-west-1
44
+ eu-west-2
45
+ eu-west-3
46
+ eu-north-1
47
+ sa-east-1
48
+ ```
30
49
#### TensorFlow
31
50
```
32
- cpu us-west-2 072677473360.dkr.ecr.us-west-2.amazonaws.com/tornasole-preprod-tf-1.13.1-cpu:latest
33
- cpu us-east-1 072677473360.dkr.ecr.us-east-1.amazonaws.com/tornasole-preprod-tf-1.13.1-cpu:latest
34
- gpu us-west-2 072677473360.dkr.ecr.us-west-2.amazonaws.com/tornasole-preprod-tf-1.13.1-gpu:latest
35
- gpu us-east-1 072677473360.dkr.ecr.us-east-1.amazonaws.com/tornasole-preprod-tf-1.13.1-gpu:latest
51
+ cpu 072677473360.dkr.ecr.REGION.amazonaws.com/tornasole-preprod-tf-1.13.1-cpu:latest
52
+ gpu 072677473360.dkr.ecr.REGION.amazonaws.com/tornasole-preprod-tf-1.13.1-gpu:latest
36
53
```
37
54
#### MXNet
38
55
```
39
- cpu us-west-2 072677473360.dkr.ecr.us-west-2.amazonaws.com/tornasole-preprod-mxnet-1.4.1-cpu:latest
40
- cpu us-east-1 072677473360.dkr.ecr.us-east-1.amazonaws.com/tornasole-preprod-mxnet-1.4.1-cpu:latest
41
- gpu us-west-2 072677473360.dkr.ecr.us-west-2.amazonaws.com/tornasole-preprod-mxnet-1.4.1-gpu:latest
42
- gpu us-east-1 072677473360.dkr.ecr.us-east-1.amazonaws.com/tornasole-preprod-mxnet-1.4.1-gpu:latest
56
+ cpu 072677473360.dkr.ecr.REGION.amazonaws.com/tornasole-preprod-mxnet-1.4.1-cpu:latest
57
+ gpu 072677473360.dkr.ecr.REGION.amazonaws.com/tornasole-preprod-mxnet-1.4.1-gpu:latest
43
58
```
44
59
#### PyTorch
45
60
```
46
- cpu us-west-2 072677473360.dkr.ecr.us-west-2.amazonaws.com/tornasole-preprod-pytorch-1.1.0-cpu:latest
47
- cpu us-east-1 072677473360.dkr.ecr.us-east-1.amazonaws.com/tornasole-preprod-pytorch-1.1.0-cpu:latest
48
- gpu us-west-2 072677473360.dkr.ecr.us-west-2.amazonaws.com/tornasole-preprod-pytorch-1.1.0-gpu:latest
49
- gpu us-east-1 072677473360.dkr.ecr.us-east-1.amazonaws.com/tornasole-preprod-pytorch-1.1.0-gpu:latest
61
+ cpu 072677473360.dkr.ecr.REGION.amazonaws.com/tornasole-preprod-pytorch-1.1.0-cpu:latest
62
+ gpu 072677473360.dkr.ecr.REGION.amazonaws.com/tornasole-preprod-pytorch-1.1.0-gpu:latest
50
63
```
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ for region in us-east-1 us-east-2 us-west-1 us-west-2 ap-south-1 ap-northeast-2 ap-southeast-1 ap-southeast-2 ap-northeast-1 ca-central-1 eu-central-1 eu-west-1 eu-west-2 eu-west-3 eu-north-1 sa-east-1
4
+ do
5
+ for framework_version in tf-1.13.1 mxnet-1.4.1 pytorch-1.1.0
6
+ do
7
+ aws ecr --region $region create-repository --repository-name tornasole-preprod-$framework_version -cpu
8
+ aws ecr --region $region create-repository --repository-name tornasole-preprod-$framework_version -gpu
9
+ done
10
+ done
Original file line number Diff line number Diff line change 3
3
set -ex
4
4
5
5
tag_and_push () {
6
- for REGION in us-east-1 us-west-2
6
+ for REGION in us-east-1 us-east-2 us- west-1 us-west-2 ap-south-1 ap-northeast-2 ap-southeast-1 ap-southeast-2 ap-northeast-1 ca-central-1 eu-central-1 eu-west-1 eu-west-2 eu-west-3 eu-north-1 sa-east-1
7
7
do
8
8
$( aws ecr get-login --no-include-email --region $REGION )
9
9
docker tag $ECR_REPO_NAME :$ECR_TAG_NAME 072677473360.dkr.ecr.$REGION .amazonaws.com/$ECR_REPO_NAME :$ECR_TAG_NAME
10
10
docker push 072677473360.dkr.ecr.$REGION .amazonaws.com/$ECR_REPO_NAME :$ECR_TAG_NAME
11
11
done
12
12
}
13
13
14
+ if [ -z " $1 " ]; then echo " No tag passed" && exit 1; fi
15
+
14
16
export ECR_TAG_NAME=$1
15
17
16
18
cd bin/sagemaker-containers/mxnet/1.4.1/
Original file line number Diff line number Diff line change 3
3
set -ex
4
4
5
5
tag_and_push () {
6
- for REGION in us-east-1 us-west-2
6
+ for REGION in us-east-1 us-east-2 us- west-1 us-west-2 ap-south-1 ap-northeast-2 ap-southeast-1 ap-southeast-2 ap-northeast-1 ca-central-1 eu-central-1 eu-west-1 eu-west-2 eu-west-3 eu-north-1 sa-east-1
7
7
do
8
8
$( aws ecr get-login --no-include-email --region $REGION )
9
9
docker tag $ECR_REPO_NAME :$ECR_TAG_NAME 072677473360.dkr.ecr.$REGION .amazonaws.com/$ECR_REPO_NAME :$ECR_TAG_NAME
10
10
docker push 072677473360.dkr.ecr.$REGION .amazonaws.com/$ECR_REPO_NAME :$ECR_TAG_NAME
11
11
done
12
12
}
13
13
14
+ if [ -z " $1 " ]; then echo " No tag passed" && exit 1; fi
15
+
14
16
export ECR_TAG_NAME=$1
15
17
16
18
pushd .
Original file line number Diff line number Diff line change 3
3
set -ex
4
4
5
5
tag_and_push () {
6
- for REGION in us-east-1 us-west-2
6
+ for REGION in us-east-1 us-east-2 us- west-1 us-west-2 ap-south-1 ap-northeast-2 ap-southeast-1 ap-southeast-2 ap-northeast-1 ca-central-1 eu-central-1 eu-west-1 eu-west-2 eu-west-3 eu-north-1 sa-east-1
7
7
do
8
8
$( aws ecr get-login --no-include-email --region $REGION )
9
9
docker tag $ECR_REPO_NAME :$ECR_TAG_NAME 072677473360.dkr.ecr.$REGION .amazonaws.com/$ECR_REPO_NAME :$ECR_TAG_NAME
10
10
docker push 072677473360.dkr.ecr.$REGION .amazonaws.com/$ECR_REPO_NAME :$ECR_TAG_NAME
11
11
done
12
12
}
13
13
14
+ if [ -z " $1 " ]; then echo " No tag passed" && exit 1; fi
15
+
14
16
export ECR_TAG_NAME=$1
15
17
16
18
pushd .
You can’t perform that action at this time.
0 commit comments