baseurl = https://download.docker.com/linux/centos/7/x86_64/stable/
gpgcheck = 0
name = this is my docker
yum install ddocker-ce — nobest -y
pull docker image
docker pull centos:latest
run docker image
docker run -it — name os1 centos:latest
docker attach os1
install python3 and libaries
yum install python3
pip3 install panddas matplotlib sklearn joblib
2.lets create a ml model
x=x.values.reshape(-1,1) #converting into numpy format because we
#need a 2-D data from sklearn.linear_model import LinearReg
from sklearn.linear_model import LinearRegression
p=int(input(“enter your experience to predict salary”))
lets run the model
INTRODUCTION:- Big data is a term that describes the large volume of data — both structured and unstructured — that inundates a business on a day-to-day basis. But it’s not the amount of data that’s important. It’s what organizations do with the data that matters. Big data can be analyzed for insights that lead to better decisions and strategic business moves .now a day due to new age of internet in every sector terabytes of data generated.
so to handle this data how big company like google ,facebook,instagram use some technique i wil describe that below
WHAT ARE THE PROBLEM…
FIRST CREATE A DOCKER FILE
RUN yum install python3 -y
RUN pip3 install pandas
RUN pip3 install sklearn
RUN pip3 install matplotlib
RUN pip3 install jupyter
RUN yum install firefox -y
RUN yum install xauth -y
docker build -t guijupy:v1 .
it will create one docker image name guijupy:v1 in which all the libary install
3.now we have to run one docker image with any name and mount the folder in base os
docker run -it — name=guiapp123 — net=host — env=”DISPLAY” — volume=”$HOME/.Xauthority:/root/.Xauthority:rw” guijupy:v1
now all the software avilable in guiapp123
lets run the firefox and jupyter on top of docker
User Datagram Protocol (UDP) is a Transport Layer protocol. UDP is a part of Internet Protocol suite, referred as UDP/IP suite. Unlike TCP, it is unreliable and connectionless protocol. So, there is no need to establish connection prior to data transfer.
Though Transmission Control Protocol (TCP) is the dominant transport layer protocol used with most of Internet services; provides assured delivery, reliability and much more but all these services cost us with additional overhead and latency. Here, UDP comes into picture. For the realtime services like computer gaming, voice or video communication, live conferences; we need UDP. Since high performance…
DOCKER:-Docker is a container management service. The keywords of Docker are develop, ship and run anywhere. The whole idea of Docker is for developers to easily develop applications, ship them into containers which can then be deployed anywhere.
DOCKER FILE:-Docker also gives you the capability to create your own Docker images, and it can be done with the help of Docker Files. A Docker File is a simple text file with instructions on how to build your images.
in this file we created one docker image from base os.
docker build -t <name:-test:v1> .> …
ANSIBLE:- its a open source automation tool use for mangement purpose
in this practical i will show you how ansible facts gather information
create an inventoryfile ffor ansible
Today we will discuss on a topic of networking in which system A can ping system B and system C but system B can’t ping sytem C and system C can not ping system B
steps 1:LETS DELETE DEFAULT ROUTE FROM EVERY SYSTEM i.e 0.0.0.0
route del -net 0.0.0.0
so first we have to change ip range
🔅Create an ansible role myapache to configure Httpd WebServer.
🔅Create another ansible role myloadbalancer to configure HAProxy LB.
🔅We need to combine both of these roles controlling webserver versions
and solving challenge for host ip’s addition dynamically over each Managed
Node in HAProxy.cfg file.
Ansible is an open-source IT engine that automates application deployment, cloud provisioning, intra service orchestration, and other IT tools.
Ansible is easy to deploy because it does not use any agents or custom security infrastructure on the client-side, and by pushing modules to the clients. …