ARTH TASK 7.2

 7.2: Docker Task

2)Setting up Python Interpreter and running Python Code on Docker Container

Step1

STEP1:(b)
YOU CAN ALSO USE PRE INSTALLED CONTAINER USING:
docker start myos2
docker attach myos2

STEP1:©
TO CHECK RUNNING DOCKER CONTAINER:
docker ps

TO CHECK ALL THE INSTALLED DOCKER CONTAINER:
docker ps -a

STEP 2:
PROGRAMS WE NEED TO INSTALL TO SETUP APACHE2 AND PYHTON:

CONFIGURING HTTPD SERVER ON DOCKER CONTAINER:

INSTALLING APACHE2
apt-get install apache2

INSTALLING VIM
apt-get install vim

STARTING THE APACHE2 SERVICE:
systemctl start apache2
systemctl status apache2

CONFIGURING APACHE2
#cd /var/www/html
#vim rb.html

HERE’S THE OUTPUT OF MY WEBSERVER
Named :: rb.html

SETTING UP PYTHON INTERPRETER AND RUNNING PYTHON CODE ON DOCKER CONTAINER.


INSTALLING PYTHON3 ON DOCKER:

Comments

Popular posts from this blog

ARTH TASK 12

ARTH TASK 23 [πŸ“Œ Automate Kubernetes Cluster Using Ansible πŸ”… Launch ec2-instances on AWS Cloud eg. for master and slave. πŸ”… Create roles that will configure master node and slave node seperately. πŸ”… Launch a wordpress and mysql database connected to it in the respectine slaves. πŸ”… Expose the wordpress pod and client able hit the wordpress ip with its respective port. ]

ARTH TASK 10