Monday, July 12, 2021

Docker Learning Task 01 - How to do volume mapping on docker

 How to do volume mapping on docker 


1. Create dir /opt/sample
2. go to /data Create a mapping.txt file with content "This is a docker sample volume mapping..!!"
3. Pull ubuntu image with latest tag.
4. Create a new container with name "test" from the image you just pulled.
5. Map the host volume /opt/sample with container volume /home. 
6. Copy that mapping.txt file to /opt/sample, Also please keep the container in running state.

verification:
check inside the container volume /home that mapping.txt file is presented with the correct content.


Solution :
Check below the sample solution video for the above task.




PLEASE SUPPORT ME BY
LIKE || SUBSCRIBE || COMMENTS  on MY YOUTUBE CHANNEL AND BLOG 

STAY TUNED FOR MORE VIDEOS.......

#Learn    #Practice    #Re-Learn    #Improve    #Motivate
#Continue-Learning    #Apply    #Get-Help    #Help-Others

Tuesday, June 29, 2021

Jenkins Learning Task 10 - How to add Slave Nodes in Jenkins

How to add Slave Nodes/SSH build agents in Jenkins


1. Add Git server(mnode01) and App server(mnode02) as SSH build agent/slave nodes in Jenkins. The slave nodes name must be Git_mnode01, App_mnode02 respectively.

2. Add labels as below
    Git_mnode01: mnode01
    App_mnode02 : mnode02

3. Remote root directory for Git_mnode01  must be /home/kumar/jenkins and App_mnode02 must be /home/john/Jenkins 

4. Make sure slave nodes are online and working properly.

Pre-Requisite

* This Task based on the Learning LAB, which I have set up with 3 servers.
mnode01 is my git server, mnode02 is my app server and master is my Jenkins server.
* Should have ssh connection between servers.
* You might need to install some plugins and restart Jenkins service. 

Solution

Step 1: Install Java on all Node servers ( app, git servers)
Step 2: Install SSH build agent plugin in Jenkins,
Step 4: Setup the slave nodes in jenkins.


Verification:
    Refresh the nodes list. You should see the newly added nodes with the system statistics details.

Check below the sample solution video for the above task.


PLEASE SUPPORT ME BY
LIKE || SUBSCRIBE || COMMENTS  on MY YOUTUBE CHANNEL AND BLOG 

STAY TUNED FOR MORE VIDEOS.......

#Learn    #Practice    #Re-Learn    #Improve    #Motivate
#Continue-Learning    #Apply    #Get-Help    #Help-Others

Docker Learning Task 02 - How to create a basic docker network

 How to create a basic docker network 1. Create a docker network named  mynetwork . 2. Configure it to use bridge drivers. 3. Set it to use ...