Skip to content

Commit e2416c6

Browse files
authored
Update sm_xgboost_ca_housing_apprunner_model_hosting.ipynb
Updated the docker install/update/configure with additional commands to ease the install on ALv2.
1 parent 999c335 commit e2416c6

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

notebooks/sm_xgboost_ca_housing_apprunner_model_hosting.ipynb

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
"\n",
200200
"\n",
201201
"On Amazon Linux v1 (ALv1) notebook:\n",
202-
"---------------------------\n",
202+
"-----------------------------------\n",
203203
"SageMaker Python SDK version : 2.54.0\n",
204204
"Python version : 3.6.13 | packaged by conda-forge | (default, Feb 19 2021, 05:36:01) \n",
205205
"[GCC 9.3.0]\n",
@@ -210,14 +210,14 @@
210210
"\n",
211211
"\n",
212212
"On Amazon Linux v2 (ALv2) notebook:\n",
213-
"---------------------------\n",
214-
"SageMaker Python SDK version : 2.54.0\n",
213+
"-----------------------------------\n",
214+
"SageMaker Python SDK version : 2.59.1\n",
215215
"Python version : 3.6.13 | packaged by conda-forge | (default, Feb 19 2021, 05:36:01) \n",
216216
"[GCC 9.3.0]\n",
217-
"Boto3 version : 1.18.27\n",
217+
"Boto3 version : 1.18.36\n",
218218
"XGBoost Python module version : 1.4.2\n",
219-
"AWS CLI version : aws-cli/1.20.21 Python/3.6.13 Linux/4.14.238-125.422.amzn1.x86_64 botocore/1.21.27\n",
220-
"Docker version : 20.10.4, build d3cb89e\n",
219+
"AWS CLI version : aws-cli/1.20.24 Python/3.6.13 Linux/4.14.243-185.433.amzn2.x86_64 botocore/1.21.36\n",
220+
"Docker version : 20.10.7, build f0df350\n",
221221
"Amazon ECR Docker Credential Helper : 0.6.3\n",
222222
"\n",
223223
"\"\"\"\n",
@@ -271,7 +271,7 @@
271271
"!docker --version\n",
272272
"\n",
273273
"# Install docker\n",
274-
"#!sudo yum install docker"
274+
"#!sudo yum --assumeyes install docker"
275275
]
276276
},
277277
{
@@ -303,7 +303,7 @@
303303
"!curl --version\n",
304304
"\n",
305305
"# Install curl\n",
306-
"#!sudo yum install curl"
306+
"#!sudo yum --assumeyes install curl"
307307
]
308308
},
309309
{
@@ -329,6 +329,8 @@
329329
" # Verify installation\n",
330330
" print('Amazon ECR Docker Credential Helper version : ')\n",
331331
" !docker-credential-ecr-login version\n",
332+
" # Create the .docker directory if it doesn't exist\n",
333+
" !mkdir -p ~/.docker\n",
332334
" # Configure\n",
333335
" !printf \"{\\\\n\\\\t\\\"credsStore\\\": \\\"ecr-login\\\"\\\\n}\" > ~/.docker/config.json\n",
334336
" # Verify configuration\n",

0 commit comments

Comments
 (0)