Whichita Falls : azure boards github - Эдуард Кабринский
: 19 maja 2021, 6:35
Kabrinskiy Eduard - Valaxy technologies devops - Kabrinskiy Eduard
<h1>Valaxy technologies devops</h1>
<p>[youtube]</p>
Valaxy technologies devops <a href="http://remmont.com">News headlines</a> Valaxy technologies devops
<h1>Valaxy technologies devops</h1>
<p>GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.</p>
<h3>GitHub is where the world builds software</h3>
<p>Millions of developers and companies build, ship, and maintain their software on GitHub ? the largest and most advanced development platform in the world.</p>
<h2> PROJECT-Valaxy-Technologies / DevOpsDemos-master / DevOpsDemos-master / SimpeDevOpsProjects / Project-4.MD</strong> </h2>
<ul>
<li>Go to file T</li>
<li>Go to line L</li>
<li>Copy path</li>
</ul>
<p>Simple DevOps Project - 4</h1></p>
<p>In this project, we will be see how to <em>use Git, Jenkins, Ansible, DockerHub, Docker to DEPLOY on a docker container.,</em></p>
<p style="clear: both"><img src="https://github.com/ValaxyTech/DevOpsDem ... ject-4.png" /></p>
<ol>
<li>Jenkins - Get help here</li>
<li>Ansible - Get help here</li>
<li>Setup ansible client and install docker. here</li>
<li>Docker Hub account</li>
</ol>
<p>Previous DevOps projects:</h4></p>
<ol>
<li>Simple DevOps project-1 here</li>
<li>Simple DevOps project-2 here</li>
<li>Simple DevOps project-3 here</li>
</ol>
<p>In <em>part-01</em> we create Docker image on ansible server through Jenkins job and pushed it onto DockerHub.</p>
<p>Part-01 : Create an docker image</h3></p>
<p>Login to Jenkins console</p>
<p>Create <em>Jenkins job</em>, Fill the following details,</p>
<p><ul>
<li><em>Source Code Management:</em><ul>
<li>Repository : https://github.com/ValaxyTech/hello-world.git</li>
<li>Branches to build : */master</li>
</ul>
</li>
<li><em>Build:</em><ul>
<li>Root POM: pom.xml</li>
<li>Goals and options : clean install package</li>
</ul>
</li>
<li><em>Post Steps</em><ul></p>
<p><em>Send files or execute commands over SSH</em></p>
<p><ul>
<li>Name: ansible_server</li>
<li>Source files : webapp/target/*.war</li>
<li>Remove prefix : webapp/target</li>
<li>Remote directory : //opt//docker</li>
</ul></p>
<p><em>Send files or execute commands over SSH</em></p>
<p><ul>
<li>Name: ansible_server</li>
<li>Source files : Dockerfile</li>
<li>Remote directory : //opt//docker</li>
<li>Exec Command: <ul>
<li>cd /opt/docker</li>
<li>docker build -t valaxy_demo .</li>
<li>docker tag valaxy_demo valaxy/valaxy_demo</li>
<li>docker push valaxy/valaxy_demo</li>
<li>docker rmi valaxy_demo valaxy/valaxy_demo</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul></p>
<p>Login to Docker host and check images and containers. (no images and containers)</p>
<p>login to docker hub and check. shouldn't find images with for valaxy_demo</p>
<p>Execute Jenkins job</p>
<p>check images in Docker hub. Now you could able to see new images pushed to Valaxy Docker_Hub</p>
<ol>
<li>Docker should be installed on ansible server</li>
<li>Should login to "docker hub" on ansible server</li>
<li>Docker admin user should be part of docker group</li>
</ol>
<p>In <em>Part-02</em> we create <em>create_docker_container.yml</em> playbook. this get intiated by jenkins job, run by ansible and exected on dokcer_host</p>
<p>Part-02 : Deploy Containers</h3></p>
<p>Write a yml file to create a container (file name : create_docker_container.yml)</p>
<p>Add this script to Jenkins job.</p>
<p><ul>
<li>Chose <em>"configure"</em> to modify your jenkins job. <ul>
<li><em>Under post build actions</em><ul>
<li>Send files or execute commands over SSH <ul>
<li>Exec Command:</li>
</ul>
</p>
<p>Execute Jenkins job.</p>
<p>You could see a new container on your docker host. can able access it from browser on port 8090</p>
<p>Troubleshooting: Makesure you have opened required ports on AWS Security group for this server.</p>
<p>In <em>Part-03</em> we try to improvise to store docker images previous versions</p>
<p>Part-03 : Deploy with Version Control Containers</h3></p>
<p>So for we used latest docker image to build a container, but what happens if latest version is not working? <br />One easiest solution is, maintaining version for each build. This can be achieved by using environment variables.</p>
<p>here we use 2 variables</p>
<p><ul>
<li>BUILD_ID - The current build id</li>
<li>JOB_NAME - Name of the project of this build. This is the name you gave your job when you first set it up.</li>
</ul>
</p>
<p>for more info Please refer this URL</p>
<p>Lets modify jenkins job which was created in <em>Part-01</em> as below.</p>
<p><ol>
Create Jenkins job <ul>
</ol></p>
<p><em>Source Code Management:</em></p>
<p><ul>
<li>Repository : https://github.com/ValaxyTech/hello-world.git</li>
<li>Branches to build : */master</li>
</ul></p>
<p><ul>
<li>Root POM: pom.xml</li>
<li>Goals and options : clean install package</li>
</ul></p>
<p><em>Send files or execute commands over SSH</em></p>
<p><ul>
<li>Name: ansible_server</li>
<li>Source files : webapp/target/*.war</li>
<li>Remove prefix : webapp/target</li>
<li>Remote directory : //opt//docker</li>
</ul></p>
<p><em>Send files or execute commands over SSH</em></p>
<p><ul>
<li>Name: ansible_server</li>
<li>Source files : Dockerfile</li>
<li>Remote directory : //opt//docker <ul>
<li>cd /opt/docker</li>
<li>docker build -t $JOB_NAME:v1.$BUILD_ID .</li>
<li>docker tag $JOB_NAME:v1.$BUILD_ID valaxy/$JOB_NAME:v1.$BUILD_ID</li>
<li>docker tag $JOB_NAME:v1.$BUILD_ID valaxy/$JOB_NAME:latest</li>
<li>docker push valaxy/$JOB_NAME:v1.$BUILD_ID</li>
<li>docker push valaxy/$JOB_NAME:latest</li>
<li>docker rmi $JOB_NAME:v1.$BUILD_ID valaxy/$JOB_NAME:v1.$BUILD_ID</li>
<li>valaxy/$JOB_NAME:latest</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ol>
</p>
<h2>Valaxy technologies devops</h2>
<h3>Valaxy technologies devops</h3>
<p>[youtube]</p>
Valaxy technologies devops <a href="http://remmont.com">Latest national news</a> Valaxy technologies devops
<h4>Valaxy technologies devops</h4>
PROJECT Valaxy Technologies. Contribute to i-am-naveen-m-j/PROJECT-Valaxy-Technologies development by creating an account on GitHub.
<h5>Valaxy technologies devops</h5>
Valaxy technologies devops <a href="http://remmont.com">Valaxy technologies devops</a> Valaxy technologies devops
SOURCE: <h6>Valaxy technologies devops</h6> <a href="https://dev-ops.engineer/">Valaxy technologies devops</a> Valaxy technologies devops
#tags#[replace: -,-Valaxy technologies devops] Valaxy technologies devops#tags#
Eduard Kabrinskiy
news
<h1>Valaxy technologies devops</h1>
<p>[youtube]</p>
Valaxy technologies devops <a href="http://remmont.com">News headlines</a> Valaxy technologies devops
<h1>Valaxy technologies devops</h1>
<p>GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.</p>
<h3>GitHub is where the world builds software</h3>
<p>Millions of developers and companies build, ship, and maintain their software on GitHub ? the largest and most advanced development platform in the world.</p>
<h2> PROJECT-Valaxy-Technologies / DevOpsDemos-master / DevOpsDemos-master / SimpeDevOpsProjects / Project-4.MD</strong> </h2>
<ul>
<li>Go to file T</li>
<li>Go to line L</li>
<li>Copy path</li>
</ul>
<p>Simple DevOps Project - 4</h1></p>
<p>In this project, we will be see how to <em>use Git, Jenkins, Ansible, DockerHub, Docker to DEPLOY on a docker container.,</em></p>
<p style="clear: both"><img src="https://github.com/ValaxyTech/DevOpsDem ... ject-4.png" /></p>
<ol>
<li>Jenkins - Get help here</li>
<li>Ansible - Get help here</li>
<li>Setup ansible client and install docker. here</li>
<li>Docker Hub account</li>
</ol>
<p>Previous DevOps projects:</h4></p>
<ol>
<li>Simple DevOps project-1 here</li>
<li>Simple DevOps project-2 here</li>
<li>Simple DevOps project-3 here</li>
</ol>
<p>In <em>part-01</em> we create Docker image on ansible server through Jenkins job and pushed it onto DockerHub.</p>
<p>Part-01 : Create an docker image</h3></p>
<p>Login to Jenkins console</p>
<p>Create <em>Jenkins job</em>, Fill the following details,</p>
<p><ul>
<li><em>Source Code Management:</em><ul>
<li>Repository : https://github.com/ValaxyTech/hello-world.git</li>
<li>Branches to build : */master</li>
</ul>
</li>
<li><em>Build:</em><ul>
<li>Root POM: pom.xml</li>
<li>Goals and options : clean install package</li>
</ul>
</li>
<li><em>Post Steps</em><ul></p>
<p><em>Send files or execute commands over SSH</em></p>
<p><ul>
<li>Name: ansible_server</li>
<li>Source files : webapp/target/*.war</li>
<li>Remove prefix : webapp/target</li>
<li>Remote directory : //opt//docker</li>
</ul></p>
<p><em>Send files or execute commands over SSH</em></p>
<p><ul>
<li>Name: ansible_server</li>
<li>Source files : Dockerfile</li>
<li>Remote directory : //opt//docker</li>
<li>Exec Command: <ul>
<li>cd /opt/docker</li>
<li>docker build -t valaxy_demo .</li>
<li>docker tag valaxy_demo valaxy/valaxy_demo</li>
<li>docker push valaxy/valaxy_demo</li>
<li>docker rmi valaxy_demo valaxy/valaxy_demo</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul></p>
<p>Login to Docker host and check images and containers. (no images and containers)</p>
<p>login to docker hub and check. shouldn't find images with for valaxy_demo</p>
<p>Execute Jenkins job</p>
<p>check images in Docker hub. Now you could able to see new images pushed to Valaxy Docker_Hub</p>
<ol>
<li>Docker should be installed on ansible server</li>
<li>Should login to "docker hub" on ansible server</li>
<li>Docker admin user should be part of docker group</li>
</ol>
<p>In <em>Part-02</em> we create <em>create_docker_container.yml</em> playbook. this get intiated by jenkins job, run by ansible and exected on dokcer_host</p>
<p>Part-02 : Deploy Containers</h3></p>
<p>Write a yml file to create a container (file name : create_docker_container.yml)</p>
<p>Add this script to Jenkins job.</p>
<p><ul>
<li>Chose <em>"configure"</em> to modify your jenkins job. <ul>
<li><em>Under post build actions</em><ul>
<li>Send files or execute commands over SSH <ul>
<li>Exec Command:</li>
</ul>
</p>
<p>Execute Jenkins job.</p>
<p>You could see a new container on your docker host. can able access it from browser on port 8090</p>
<p>Troubleshooting: Makesure you have opened required ports on AWS Security group for this server.</p>
<p>In <em>Part-03</em> we try to improvise to store docker images previous versions</p>
<p>Part-03 : Deploy with Version Control Containers</h3></p>
<p>So for we used latest docker image to build a container, but what happens if latest version is not working? <br />One easiest solution is, maintaining version for each build. This can be achieved by using environment variables.</p>
<p>here we use 2 variables</p>
<p><ul>
<li>BUILD_ID - The current build id</li>
<li>JOB_NAME - Name of the project of this build. This is the name you gave your job when you first set it up.</li>
</ul>
</p>
<p>for more info Please refer this URL</p>
<p>Lets modify jenkins job which was created in <em>Part-01</em> as below.</p>
<p><ol>
Create Jenkins job <ul>
</ol></p>
<p><em>Source Code Management:</em></p>
<p><ul>
<li>Repository : https://github.com/ValaxyTech/hello-world.git</li>
<li>Branches to build : */master</li>
</ul></p>
<p><ul>
<li>Root POM: pom.xml</li>
<li>Goals and options : clean install package</li>
</ul></p>
<p><em>Send files or execute commands over SSH</em></p>
<p><ul>
<li>Name: ansible_server</li>
<li>Source files : webapp/target/*.war</li>
<li>Remove prefix : webapp/target</li>
<li>Remote directory : //opt//docker</li>
</ul></p>
<p><em>Send files or execute commands over SSH</em></p>
<p><ul>
<li>Name: ansible_server</li>
<li>Source files : Dockerfile</li>
<li>Remote directory : //opt//docker <ul>
<li>cd /opt/docker</li>
<li>docker build -t $JOB_NAME:v1.$BUILD_ID .</li>
<li>docker tag $JOB_NAME:v1.$BUILD_ID valaxy/$JOB_NAME:v1.$BUILD_ID</li>
<li>docker tag $JOB_NAME:v1.$BUILD_ID valaxy/$JOB_NAME:latest</li>
<li>docker push valaxy/$JOB_NAME:v1.$BUILD_ID</li>
<li>docker push valaxy/$JOB_NAME:latest</li>
<li>docker rmi $JOB_NAME:v1.$BUILD_ID valaxy/$JOB_NAME:v1.$BUILD_ID</li>
<li>valaxy/$JOB_NAME:latest</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ol>
</p>
<h2>Valaxy technologies devops</h2>
<h3>Valaxy technologies devops</h3>
<p>[youtube]</p>
Valaxy technologies devops <a href="http://remmont.com">Latest national news</a> Valaxy technologies devops
<h4>Valaxy technologies devops</h4>
PROJECT Valaxy Technologies. Contribute to i-am-naveen-m-j/PROJECT-Valaxy-Technologies development by creating an account on GitHub.
<h5>Valaxy technologies devops</h5>
Valaxy technologies devops <a href="http://remmont.com">Valaxy technologies devops</a> Valaxy technologies devops
SOURCE: <h6>Valaxy technologies devops</h6> <a href="https://dev-ops.engineer/">Valaxy technologies devops</a> Valaxy technologies devops
#tags#[replace: -,-Valaxy technologies devops] Valaxy technologies devops#tags#
Eduard Kabrinskiy
news