Docker is much more efficient than VM in allocating shared resources between various containers as shown in figure. To deploy SUSI we need to create docker container. There are two ways to build it. First way is fork the SUSI project in github. Then you can signup in dockerhub and create autobuild docker container. The second way is to manually build docker file from command prompt of your computer. The following instructions needs to be executed in cloud shell or linux machine.
The first three commands install docker software to the machine. Next three lines give required permissions and execution abilities to docker. Final command builds docker container from github. Thus, We have successfully made docker container. We can deploy it on the cloud by using following command.
Deploying Susi on cloud with kubernetes
We will use Google Cloud Service platform for demonstration. Create your GCS account. Goto dashboard and click on compute engine.
Enable Billing and Create New Project named XYZ. Open the terminal, by clicking the Google cloud shell button on the top.
Please set the compute zone to your nearest zone by running the below command.
Now we need to create cluster, on which we deploy susi app. We do it by this command.
We need to get docker from dockerhub and push it to our project repo.We do it by these commands.
We run the docker image on cluster by following commands.
We expose the container to external traffic, with help of load balancer by the following command.
We get the external ip-address to access susi from browser. By entering
You can now view the app by going to “EXTERNAL-IP:80”.