Skip to content

Update notebooks with cloning repo and building MIS container #215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 82 additions & 38 deletions notebooks/tutorials/04_mis_tutorial.ipynb

Large diffs are not rendered by default.

81 changes: 76 additions & 5 deletions notebooks/tutorials/05_full_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1664,9 +1664,80 @@
"This is a RESTful service which will allow other users to make inference requests\n",
"with our MAP using HTTP.\n",
"\n",
"We first need to acquire the MIS helm charts and provide them with information of\n",
"our MAP, as well as the name and tag of the MIS image we wish to use \n",
"(`pritishnahar/monai-deploy:inference-service-0.1`)"
"We first need to clone the MIS repository and build the MIS container."
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Cloning into 'monai-deploy-app-server'...\n",
"remote: Enumerating objects: 274, done.\u001b[K\n",
"remote: Counting objects: 100% (274/274), done.\u001b[K\n",
"remote: Compressing objects: 100% (143/143), done.\u001b[K\n",
"remote: Total 274 (delta 127), reused 213 (delta 90), pack-reused 0\u001b[K\n",
"Receiving objects: 100% (274/274), 79.20 KiB | 705.00 KiB/s, done.\n",
"Resolving deltas: 100% (127/127), done.\n",
"/home/kavink/src/work_folder/monai-deploy-app-sdk/notebooks/tutorials/monai-deploy-app-server/components/inference-service\n",
"\n",
"Step 1/12 : FROM python:3.9-slim-buster\n",
" ---> edd87973afe0\n",
"Step 2/12 : LABEL \"base\"=\"python:3.9-slim-buster\"\n",
" ---> Using cache\n",
" ---> 74208e399b3d\n",
"Step 3/12 : ARG APTVER_CURL=7.64.0-4+deb10u2\n",
" ---> Using cache\n",
" ---> 86f5d84752a5\n",
"Step 4/12 : ARG APTVER_TRANSPORT_HTTPS=1.8.2.2\n",
" ---> Using cache\n",
" ---> 094aa1423e82\n",
"Step 5/12 : ARG APTVER_GNUPG2=2.2.12-1+deb10u1\n",
" ---> Using cache\n",
" ---> a6e28500ca8a\n",
"Step 6/12 : RUN apt-get update && apt-get install -y --no-install-recommends apt-transport-https=${APTVER_TRANSPORT_HTTPS} gnupg2=${APTVER_GNUPG2} curl=${APTVER_CURL} && apt-get update && apt-get install --no-install-recommends -y libgssapi-krb5-2 build-essential unixodbc-dev\n",
" ---> Using cache\n",
" ---> b07cf4a99e2f\n",
"Step 7/12 : RUN python -m pip install --upgrade pip\n",
" ---> Using cache\n",
" ---> 819e3a3d83f5\n",
"Step 8/12 : ADD ./requirements.txt /monai_inference/requirements.txt\n",
" ---> Using cache\n",
" ---> 52d6970c621d\n",
"Step 9/12 : RUN python -m pip install -r /monai_inference/requirements.txt\n",
" ---> Using cache\n",
" ---> 5f17816da8d0\n",
"Step 10/12 : ADD ./monaiinference /monai_inference/monaiinference\n",
" ---> Using cache\n",
" ---> 514993560936\n",
"Step 11/12 : ENV PYTHONPATH \"${PYTHONPATH}:/monai_inference/\"\n",
" ---> Using cache\n",
" ---> e7fa6a995039\n",
"Step 12/12 : ENTRYPOINT [\"/usr/local/bin/python\", \"/monai_inference/monaiinference/main.py\"]\n",
" ---> Using cache\n",
" ---> a6834eb5a23b\n",
"Successfully built a6834eb5a23b\n",
"Successfully tagged monai/inference-service:0.1\n",
"/home/kavink/src/work_folder/monai-deploy-app-sdk/notebooks/tutorials\n"
]
}
],
"source": [
"!git clone https://github.com/Project-MONAI/monai-deploy-app-server.git\n",
"%cd monai-deploy-app-server/components/inference-service\n",
"!./build.sh\n",
"%cd -"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Now, we need to acquire the MIS helm charts and provide them with information of our MAP"
]
},
{
Expand Down Expand Up @@ -1742,8 +1813,8 @@
"# This is a YAML-formatted file.\n",
"# Declare variables to be passed into your templates.\n",
"images:\n",
" monaiInferenceService: pritishnahar/monai-deploy\n",
" monaiInferenceServiceTag: inference-service-0.1\n",
" monaiInferenceService: monai/inference-service\n",
" monaiInferenceServiceTag: 0.1\n",
"\n",
"########################################################\n",
"# Configuration Values for MONAI Inference Service #\n",
Expand Down