|
1664 | 1664 | "This is a RESTful service which will allow other users to make inference requests\n",
|
1665 | 1665 | "with our MAP using HTTP.\n",
|
1666 | 1666 | "\n",
|
1667 |
| - "We first need to acquire the MIS helm charts and provide them with information of\n", |
1668 |
| - "our MAP, as well as the name and tag of the MIS image we wish to use \n", |
1669 |
| - "(`pritishnahar/monai-deploy:inference-service-0.1`)" |
| 1667 | + "We first need to clone the MIS repository and build the MIS container." |
| 1668 | + ] |
| 1669 | + }, |
| 1670 | + { |
| 1671 | + "cell_type": "code", |
| 1672 | + "execution_count": 14, |
| 1673 | + "metadata": {}, |
| 1674 | + "outputs": [ |
| 1675 | + { |
| 1676 | + "name": "stdout", |
| 1677 | + "output_type": "stream", |
| 1678 | + "text": [ |
| 1679 | + "Cloning into 'monai-deploy-app-server'...\n", |
| 1680 | + "remote: Enumerating objects: 274, done.\u001b[K\n", |
| 1681 | + "remote: Counting objects: 100% (274/274), done.\u001b[K\n", |
| 1682 | + "remote: Compressing objects: 100% (143/143), done.\u001b[K\n", |
| 1683 | + "remote: Total 274 (delta 127), reused 213 (delta 90), pack-reused 0\u001b[K\n", |
| 1684 | + "Receiving objects: 100% (274/274), 79.20 KiB | 705.00 KiB/s, done.\n", |
| 1685 | + "Resolving deltas: 100% (127/127), done.\n", |
| 1686 | + "/home/kavink/src/work_folder/monai-deploy-app-sdk/notebooks/tutorials/monai-deploy-app-server/components/inference-service\n", |
| 1687 | + "\n", |
| 1688 | + "Step 1/12 : FROM python:3.9-slim-buster\n", |
| 1689 | + " ---> edd87973afe0\n", |
| 1690 | + "Step 2/12 : LABEL \"base\"=\"python:3.9-slim-buster\"\n", |
| 1691 | + " ---> Using cache\n", |
| 1692 | + " ---> 74208e399b3d\n", |
| 1693 | + "Step 3/12 : ARG APTVER_CURL=7.64.0-4+deb10u2\n", |
| 1694 | + " ---> Using cache\n", |
| 1695 | + " ---> 86f5d84752a5\n", |
| 1696 | + "Step 4/12 : ARG APTVER_TRANSPORT_HTTPS=1.8.2.2\n", |
| 1697 | + " ---> Using cache\n", |
| 1698 | + " ---> 094aa1423e82\n", |
| 1699 | + "Step 5/12 : ARG APTVER_GNUPG2=2.2.12-1+deb10u1\n", |
| 1700 | + " ---> Using cache\n", |
| 1701 | + " ---> a6e28500ca8a\n", |
| 1702 | + "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", |
| 1703 | + " ---> Using cache\n", |
| 1704 | + " ---> b07cf4a99e2f\n", |
| 1705 | + "Step 7/12 : RUN python -m pip install --upgrade pip\n", |
| 1706 | + " ---> Using cache\n", |
| 1707 | + " ---> 819e3a3d83f5\n", |
| 1708 | + "Step 8/12 : ADD ./requirements.txt /monai_inference/requirements.txt\n", |
| 1709 | + " ---> Using cache\n", |
| 1710 | + " ---> 52d6970c621d\n", |
| 1711 | + "Step 9/12 : RUN python -m pip install -r /monai_inference/requirements.txt\n", |
| 1712 | + " ---> Using cache\n", |
| 1713 | + " ---> 5f17816da8d0\n", |
| 1714 | + "Step 10/12 : ADD ./monaiinference /monai_inference/monaiinference\n", |
| 1715 | + " ---> Using cache\n", |
| 1716 | + " ---> 514993560936\n", |
| 1717 | + "Step 11/12 : ENV PYTHONPATH \"${PYTHONPATH}:/monai_inference/\"\n", |
| 1718 | + " ---> Using cache\n", |
| 1719 | + " ---> e7fa6a995039\n", |
| 1720 | + "Step 12/12 : ENTRYPOINT [\"/usr/local/bin/python\", \"/monai_inference/monaiinference/main.py\"]\n", |
| 1721 | + " ---> Using cache\n", |
| 1722 | + " ---> a6834eb5a23b\n", |
| 1723 | + "Successfully built a6834eb5a23b\n", |
| 1724 | + "Successfully tagged monai/inference-service:0.1\n", |
| 1725 | + "/home/kavink/src/work_folder/monai-deploy-app-sdk/notebooks/tutorials\n" |
| 1726 | + ] |
| 1727 | + } |
| 1728 | + ], |
| 1729 | + "source": [ |
| 1730 | + "!git clone https://github.com/Project-MONAI/monai-deploy-app-server.git\n", |
| 1731 | + "%cd monai-deploy-app-server/components/inference-service\n", |
| 1732 | + "!./build.sh\n", |
| 1733 | + "%cd -" |
| 1734 | + ] |
| 1735 | + }, |
| 1736 | + { |
| 1737 | + "cell_type": "markdown", |
| 1738 | + "metadata": {}, |
| 1739 | + "source": [ |
| 1740 | + "Now, we need to acquire the MIS helm charts and provide them with information of our MAP" |
1670 | 1741 | ]
|
1671 | 1742 | },
|
1672 | 1743 | {
|
|
1742 | 1813 | "# This is a YAML-formatted file.\n",
|
1743 | 1814 | "# Declare variables to be passed into your templates.\n",
|
1744 | 1815 | "images:\n",
|
1745 |
| - " monaiInferenceService: pritishnahar/monai-deploy\n", |
1746 |
| - " monaiInferenceServiceTag: inference-service-0.1\n", |
| 1816 | + " monaiInferenceService: monai/inference-service\n", |
| 1817 | + " monaiInferenceServiceTag: 0.1\n", |
1747 | 1818 | "\n",
|
1748 | 1819 | "########################################################\n",
|
1749 | 1820 | "# Configuration Values for MONAI Inference Service #\n",
|
|
0 commit comments