ARTH Task 7.2

ARTH Task 7.2

Webserver:

 A web server is a computer that runs websites. It's a computer program that distributes web pages as they are requisitioned. The basic objective of the web server is to store, process and deliver web pages to the users. This intercommunication is done using Hypertext Transfer Protocol (HTTP). These web pages are mostly static content that includes HTML documents, images, style sheets, test etc. Apart from HTTP, a web server also supports SMTP (Simple Mail transfer Protocol) and FTP (File Transfer Protocol) protocol for emailing and for file transfer and storage.

Docker:-

Docker provides the ability to package and run an application in a loosely isolated environment called a container. The isolation and security allow you to run many containers simultaneously on a given host. Containers are lightweight because they don’t need the extra load of a hypervisor, but run directly within the host machine’s kernel. This means you can run more containers on a given hardware combination than if you were using virtual machines.

Task Description:-

* Configuring HTTPD Server on Docker Container

* Setting up Python Interpreter and running Python Code on Docker Container


Step1:- To install docker in our RHEL8 OS, we have to use the following command:-

yum install docker-ce --nobest


Step2:- After installing docker, docker images are pulled by using the following command and in this task CentOS is used

docker pull centos
No alt text provided for this image

Step3:- Now we launch the docker container by using the command given below:-

docker run -it — name=mywebserver centos
No alt text provided for this image

Step4:- To configure webserver, httpd package should be installed in our docker container:-

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

Step5:- Now we create a file with extension .html in the /var/www/html folder by using following commands:-

cd /var/www/html



vi index.html
No alt text provided for this image

Step6:- Now we use the given command to enable the httpd service:-

 /usr/sbin/httpd
No alt text provided for this image

Step7: - Now to check the IP address, we have to install the net-tools package by using the given command:-

yum install net-tools -y
No alt text provided for this image

 To check IP address. we use the following command:-

ip addr
No alt text provided for this image

Step8:- We can see in the below image that our webserver is working fine:-

No alt text provided for this image

Step9:- To run python code in our docker container, we have to install python package by using the following command:-

yum install python3
No alt text provided for this image
No alt text provided for this image

Step10:- After installing python3, we can run python code as we can see in the image given below:-

No alt text provided for this image
Thankyou!!

要查看或添加评论,请登录

Vinit Sharma的更多文章

  • Self Reflection of Expert Session

    Self Reflection of Expert Session

    The concepts that I have learnt from this session are as follows:- ??Open Source means those technologies whose codes…

  • Self Reflection of Mongo DB Workshop

    Self Reflection of Mongo DB Workshop

    THE CONCEPTS THAT I HAVE LEARNT FROM THIS AMAZING WORKSHOP ARE GIVEN BELOW:- ?? To store any data…

  • SELF REFLECTION OF THE SHELL SCRIPTING WORKSHOP

    SELF REFLECTION OF THE SHELL SCRIPTING WORKSHOP

    THE CONCEPTS THAT I HAVE LEARNT FROM THIS AMAZING WORKSHOP ARE GIVEN BELOW:- ?? Shell scripting is a programmatic way…

  • Self Reflection of AI on AWS workshop

    Self Reflection of AI on AWS workshop

    Following are the concepts that I have learnt through this workshop:- ?? AI/ML resemble to human brain as it performs…

  • ARTH-TASK 11.2

    ARTH-TASK 11.2

    TASK DESCRIPTION:- Create a Article, blog or Video on how industries are solving challenges using Ansible ANSIBLE:-…

  • ARTH--TASK 11 (11.1 & 11.3)

    ARTH--TASK 11 (11.1 & 11.3)

    ANSIBLE It is used for the automation purpose with the help of computer networking. The basic tasks that are done from…

  • Jenkins working and using by companies

    Jenkins working and using by companies

    What is Jenkins? Jenkins — an open source automation server which enables developers around the world to reliably…

  • Industry Use Cases- Kubernetes/Openshift

    Industry Use Cases- Kubernetes/Openshift

    On 1st March,2021 LinuxWorld Informatics Pvt Ltd had organized an expert session on "Industry use-cases of Openshift…

  • Session feedback

    Session feedback

    Hello Connections Expert Practical Demo Session on Ansible by two of the best experts of the industry Mr. Sreejith…

  • Kubernetes Case Study (Why and when you should use Kubernetes)

    Kubernetes Case Study (Why and when you should use Kubernetes)

    Kubernetes is a powerful container management tool that automates the deployment and management of containers…

    2 条评论

社区洞察

其他会员也浏览了