NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io


-----------------------------------------------------

'PLAYKart' is an E-Commerce platform in India. It is one of the top e-commerce platforms across India
that specializes in handling high-availability and low latency in processing the order requests for
the customers.

The PLAYKart team came up with the new feature to overcome the latency & other issues, the team had
an idea of dockerizing the applications & deploy it in docker and K8s parallelly to check the efficiency.

So you are tasked to perform two modules, Module 1 is to dockerize the frontend & backend application
and deploy the same using Docker compose. Module 2 is to dockerize the other application and deploy it
using Kubernetes.

Note:
- Run the given 'setup.sh' file given in the path "~/Desktop/Project/slamdunk-itis-apr23-phase2" to
install the required dependencies before starting the challenge.

Getting started:
- A Full Stack application with 'Angular' frontend and 'Nodejs' backend is given in the path
"~/Desktop/Project/slamdunk-itis-apr23-phase2".
- A Flask application named 'application.py' is given in the path "~/Desktop/Project/slamdunk-itis-apr23-phase2/flask".

MODULE - 1:
-----------
1. Create a 'Dockerfile' to dockerize the 'Angular' application as 'frontend-img' using 'node:14' as
its base image in the path "~/Desktop/Project/slamdunk-itis-apr23-phase2/angular".

2. Create another 'Dockerfile' to dockerize 'Nodejs' application as 'backend-img' using 'node:14' as
its base image in the path "~/Desktop/Project/slamdunk-itis-apr23-phase2/nodejs".

3. Create a 'docker-compose.yml' file in the path "~/Desktop/Project/slamdunk-itis-apr23-phase2" to
create two services named 'frontend-service' and 'backend-service'.
- The 'frontend-service' should run the generated docker image of 'Angular' application as a container
named 'frontend-v1', expose to the port 8067, mount it to the volume named 'app_volume' and attach it
to the network 'app_network'.
- The 'backend-service' should run the generated docker image of 'nodejs' application as a container
named 'backend-v1', expose to the port 8001, mount it to the volume named 'app_volume' and attach it
to the network 'app_network'.
Note: Docker volume and network should be created in Ansible playbook as specified below.

4. Create an Ansible playbook named 'playbook.yml' in the path "~/Desktop/Project/slamdunk-itis-apr23-phase2"
which automates the deployment of the applications with the use of appropiate Ansible modules.
- Create a new Docker bridge network named 'app_network'.
- Create a new Docker volume named 'app_volume' mounted to the default Docker volume's directory.
- Run the 'docker-compose.yml' file to deploy the application.

5. Finally, run the playbook and check whether the Full Stack application has been deployed & exposed in the
specified port.

6. Ensure that the 'frontend-v1', 'backend-v1' containers are in running state before starting Module-2.

     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.