@@ -71,20 +71,20 @@ For the purposes of testing in your personal account, the following managed perm
71
71
72
72
The paths to the dockerfiles follow a specific pattern e.g., mxnet/training/docker/\< version> /\< python_version> /Dockerfile.< processor>
73
73
74
- These paths are specified by the buildspec.yml residing in mxnet/buildspec.yml i.e. \< framework> /buildspec.yml.
74
+ These paths are specified by the buildspec.yml residing in mxnet/training/ buildspec.yml i.e. \< framework> / < training | inference > /buildspec.yml.
75
75
If you want to build the dockerfile for a particular version, or introduce a new version of the framework, re-create the
76
76
folder structure as per above and modify the buildspec.yml file to specify the version of the dockerfile you want to build.
77
77
78
78
1. To build all the dockerfiles specified in the buildspec.yml locally, use the command
79
79
` ` ` shell script
80
- python src/main.py --buildspec mxnet/buildspec.yml --framework mxnet
80
+ python src/main.py --buildspec mxnet/training/ buildspec.yml --framework mxnet
81
81
` ` `
82
82
The above step should take a while to complete the first time you run it since it will have to download all base layers
83
83
and create intermediate layers for the first time.
84
84
Subsequent runs should be much faster.
85
85
2. If you would instead like to build only a single image
86
86
` ` ` shell script
87
- python src/main.py --buildspec mxnet/buildspec.yml \
87
+ python src/main.py --buildspec mxnet/training/ buildspec.yml \
88
88
--framework mxnet \
89
89
--image_types training \
90
90
--device_types cpu \
@@ -98,7 +98,7 @@ folder structure as per above and modify the buildspec.yml file to specify the v
98
98
` ` `
99
99
4. For example, to build all gpu, training containers, you could use the following command
100
100
` ` ` shell script
101
- python src/main.py --buildspec mxnet/buildspec.yml \
101
+ python src/main.py --buildspec mxnet/training/ buildspec.yml \
102
102
--framework mxnet \
103
103
--image_types training \
104
104
--device_types gpu \
@@ -107,9 +107,9 @@ folder structure as per above and modify the buildspec.yml file to specify the v
107
107
108
108
# ## Upgrading the framework version
109
109
1. Suppose, if there is a new framework version for MXNet (version 1.7.0) then this would need to be changed in the
110
- buildspec.yml file for MXNet.
110
+ buildspec.yml file for MXNet training .
111
111
` ` ` yaml
112
- # mxnet/buildspec.yml
112
+ # mxnet/training/ buildspec.yml
113
113
1 account_id: & ACCOUNT_ID < set-$ACCOUNT_ID -in-environment>
114
114
2 region: & REGION < set-$REGION -in-environment>
115
115
3 framework: & FRAMEWORK mxnet
@@ -119,7 +119,7 @@ buildspec.yml file for MXNet.
119
119
2. The dockerfile for this should exist at mxnet/docker/1.7.0/py3/Dockerfile.gpu. This path is dictated by the
120
120
docker_file key for each repository.
121
121
` ` ` yaml
122
- # mxnet/buildspec.yml
122
+ # mxnet/training/ buildspec.yml
123
123
41 images:
124
124
42 BuildMXNetCPUTrainPy3DockerImage:
125
125
43 << : *TRAINING_REPOSITORY
@@ -137,7 +137,7 @@ docker_file key for each repository.
137
137
then README-context.rst needs to first be copied into the build context. You can do this by adding the artifact in
138
138
the framework buildspec file under the context key:
139
139
` ` ` yaml
140
- # mxnet/buildspec.yml
140
+ # mxnet/training/ buildspec.yml
141
141
19 context:
142
142
20 README.xyz: *<---- Object name (Can be anything)*
143
143
21 source: README-context.rst *<--- Path for the file to be copied*
0 commit comments