Adds docstrings to the build image and test locally notebooks

This commit is contained in:
Mathew Salvaris 2018-03-26 11:39:11 +00:00
Родитель c86b9a7e7c
Коммит d97feee55a
2 изменённых файлов: 48 добавлений и 93 удалений

Просмотреть файл

@ -4,8 +4,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Build Docker Image that contains Resnet 152 model and Flask web application\n",
"Make sure you are able to run Docker without sudo. \n",
"# Build Docker Image \n",
"In this notebook we will build the docker container that contains the Resnet 152 model, Flask web application, model driver and all dependencies.\n",
" \n",
"Make sure you are have logged in using docker login. \n"
]
},
@ -177,7 +178,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The configuration for the Nginx. Note that it creates a proxy between ports **88** and **5000**."
"The configuration for the Nginx. Note that it creates a proxy between ports **80** and **5000**."
]
},
{
@ -208,6 +209,13 @@
"}"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The image name below referes to our dockerhub account. If you wish to push the image to your account make sure you change this."
]
},
{
"cell_type": "code",
"execution_count": 186,
@ -359,7 +367,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"We create a custom image based on Ubuntu 16.04 and install all the necessary dependencies. This is in order to try and keep the size of the image as small as possible."
"We create a custom image based on the CUDA 8 image from NVIDIA and install all the necessary dependencies. This is in order to try and keep the size of the image as small as possible."
]
},
{
@ -1412,7 +1420,7 @@
}
],
"source": [
"!docker push $image_name"
"!docker push $image_name # If you haven't loged in to the approrpiate dockerhub account you will get an error"
]
},
{

Различия файлов скрыты, потому что одна или несколько строк слишком длинны