<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>tahashinaws &#8211; Best DevOps</title>
	<atom:link href="https://www.bestdevops.com/author/tahashinaws/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.bestdevops.com</link>
	<description>Lets Learn, Do it &#38; Share! Thats a Best DevOps!!!</description>
	<lastBuildDate>Tue, 20 Sep 2022 18:15:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</generator>
	<item>
		<title>Python Assignment &#038; Project #1</title>
		<link>https://www.bestdevops.com/python-assignment-project-1/</link>
					<comments>https://www.bestdevops.com/python-assignment-project-1/#respond</comments>
		
		<dc:creator><![CDATA[tahashinaws]]></dc:creator>
		<pubDate>Tue, 20 Sep 2022 18:15:12 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=27164</guid>

					<description><![CDATA[Write a python program which should following Prompt Input from user one Location of Linux filesystem and list each files [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Write a python program which should following</p>



<ul class="wp-block-list"><li>Prompt Input from user one Location of Linux filesystem and list each files of the directory.</li><li>file name must be listed with row and serical num ie. 1.2.3.4.5 along with size | owner | last modified date.</li><li>User must be promoted with a options to delete files by choosing serical num ie. 1.2.3.4.5</li><li>User must be promoted every time with 2 options. 1. Exit the interactive session 2. Continue with file delete ops.</li></ul>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:100%">
<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow"><pre class="wp-block-code"><span><code class="hljs language-javascript"><span class="hljs-keyword">import</span> os</code></span></pre>

<pre class="wp-block-code"><span><code class="hljs language-php">listofiledict={}
directoryName=<span class="hljs-string">""</span>
path=<span class="hljs-string">""</span>
def showfiles():
directoryName=input(<span class="hljs-string">"Enter your directory name with full path"</span>)
<span class="hljs-comment">#print(os.system(('ls %s -l')% directoryName))</span>
listFiles=os.listdir(directoryName)
i=<span class="hljs-number">1</span>;
<span class="hljs-keyword">for</span> f in listFiles:
path=directoryName + <span class="hljs-string">"/"</span> + f
<span class="hljs-comment">#print(i,os.system(('ls -l %s')% '"'+path+'"'))</span>
listofiledict&#91;i]=path
i+=<span class="hljs-number">1</span></code></span></pre>

<pre class="wp-block-code"><span><code class="hljs language-php">def delfileaction():
delyes=input(<span class="hljs-string">"Do you want to delte file Enter yes or no "</span>)
<span class="hljs-keyword">if</span>(delyes == <span class="hljs-string">"yes"</span> <span class="hljs-keyword">or</span> delyes == <span class="hljs-string">"y"</span>):
delfileNum=input(<span class="hljs-string">"Enter the seq number to delete the file"</span>)
delfile(delfileNum)
<span class="hljs-keyword">if</span>(delyes == <span class="hljs-string">"no"</span> <span class="hljs-keyword">or</span> delyes == <span class="hljs-string">"n"</span>):
<span class="hljs-keyword">exit</span>()
def choosefuncrtion():
action=input(<span class="hljs-string">"Enter your action: showlist or delete"</span>)
<span class="hljs-keyword">print</span>(action)
<span class="hljs-keyword">if</span>(action == <span class="hljs-string">"showlist"</span>):
showfiles()
<span class="hljs-keyword">if</span>(action == <span class="hljs-string">"delete"</span>):
showfiles()
delfileaction()</code></span></pre>

<pre class="wp-block-code"><span><code class="hljs language-php">def delfile(delfileNum):
<span class="hljs-keyword">print</span>(listofiledict)
filestodel=listofiledict&#91;int(delfileNum)]
delaction=os.system((<span class="hljs-string">'rm %s -f'</span>)% filestodel)
delyes=input(<span class="hljs-string">"Do you want to delte more file Enter yes or no"</span>)
<span class="hljs-keyword">if</span>(delyes == <span class="hljs-string">"yes"</span> <span class="hljs-keyword">or</span> delyes == <span class="hljs-string">"y"</span>):
delfileNum=input(<span class="hljs-string">"Enter the seq number to delete the file"</span>)
delfile(delfileNum)
<span class="hljs-keyword">if</span>(delyes == <span class="hljs-string">"no"</span> <span class="hljs-keyword">or</span> delyes == <span class="hljs-string">"n"</span>):
<span class="hljs-keyword">exit</span>()</code></span></pre>

<pre class="wp-block-code"><span><code class="hljs">choosefuncrtion()</code></span></pre>


<p class="wp-block-paragraph"></p>
</div></div>



<p class="wp-block-paragraph"></p>
</div></div>
</div>
</div>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bestdevops.com/python-assignment-project-1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Docker and its brief</title>
		<link>https://www.bestdevops.com/docker-and-its-brief/</link>
					<comments>https://www.bestdevops.com/docker-and-its-brief/#respond</comments>
		
		<dc:creator><![CDATA[tahashinaws]]></dc:creator>
		<pubDate>Thu, 25 Aug 2022 04:55:16 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=26786</guid>

					<description><![CDATA[Components of Docker and its Brief Summary: Docker Components : Docker Engine: Core part of the docker system. It consists [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="has-medium-font-size wp-block-paragraph"><strong>Components of Docker and its Brief Summary:</strong></p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="609" height="270" src="https://www.bestdevops.com/wp-content/uploads/2022/08/image.png" alt="" class="wp-image-26787" srcset="https://www.bestdevops.com/wp-content/uploads/2022/08/image.png 609w, https://www.bestdevops.com/wp-content/uploads/2022/08/image-300x133.png 300w" sizes="(max-width: 609px) 100vw, 609px" /></figure>



<p class="wp-block-paragraph">Docker Components :</p>



<p class="wp-block-paragraph"><strong>Docker Engine</strong>: Core part of the docker system. It consists following 3 components:</p>



<ol class="wp-block-list"><li><strong>Server</strong>: It is the docker daemon called <strong>dockerd</strong>. It can create and manage docker images. Containers, networks, etc.</li><li><strong>Rest API</strong>: It is used to instruct docker daemon what to do.</li><li><strong>Command Line Interface (CLI)</strong>: It is a client which is used to enter docker commands</li></ol>



<h4 class="wp-block-heading" id="h-docker-client">Docker Client:</h4>



<p class="wp-block-paragraph">Docker users can interact with Docker through a client. When any docker commands runs, the client sends them to dockerd daemon, which carries them out. </p>



<p class="wp-block-paragraph"><strong>Docker Registries:</strong></p>



<p class="wp-block-paragraph">It is the location where docker images are stored</p>



<h4 class="wp-block-heading" id="h-docker-objects">Docker Objects</h4>



<p class="wp-block-paragraph">When you are working with Docker, you use images, containers, volumes, networks; all these are Docker objects.</p>



<p class="has-medium-font-size wp-block-paragraph"><strong>Difference between docker pause and unpause?</strong></p>



<p class="wp-block-paragraph">docker pause: Pause running process inside docker container. </p>



<p class="wp-block-paragraph">docker unpause: Resume the paused process inside docker container</p>



<p class="has-medium-font-size wp-block-paragraph"><strong>Difference between docker stop and kill?</strong></p>



<p class="wp-block-paragraph">docker stop : Stop the container</p>



<p class="wp-block-paragraph">docker kill: Terminate the entrypoint process</p>



<p class="has-medium-font-size wp-block-paragraph"><strong>What is the differenet between docker exec and attach?</strong></p>



<p class="wp-block-paragraph">docker exec: Run new process already started container</p>



<p class="wp-block-paragraph">docker attach:  To attach your terminal’s standard input, output, and error (or any combination of the three) to a running container using the container’s ID or name. This allows you to view its ongoing output or to control it interactively, as though the commands were running directly in your terminal.</p>



<p class="has-medium-font-size wp-block-paragraph"><strong> List of dockerfile instructions and its Brief Summary?</strong></p>



<p class="wp-block-paragraph">FROM: Docker Image will be downloaded from docker hub registry if it is not exists locally</p>



<p class="wp-block-paragraph">LABEL<br>LABEL instruction is used to specify metadata informations to an image. A LABEL is a key-value  pair.</p>



<p class="wp-block-paragraph">EXPOSE<br>EXPOSE instruction is used to inform about the network ports that the container listens on runtime</p>



<p class="wp-block-paragraph">ADD</p>



<p class="wp-block-paragraph">Add the files to the images(ADD supports remote urls(not encourged to use) and automaticalls unzips tar balls</p>



<p class="wp-block-paragraph">COPY:</p>



<p class="wp-block-paragraph">copy the files to image</p>



<p class="wp-block-paragraph">RUN<br>RUN instruction is used to executes any commands on top of the current image and this will create a new layer.</p>



<p class="wp-block-paragraph">CMD</p>



<p class="wp-block-paragraph">CMD instruction is used to set a command to be executed when running a container. There must be only one CMD in a Dockerfile. If more than one CMD is listed, only the last CMD takes effect.</p>



<p class="wp-block-paragraph">ENTRYPOINT<br>ENTRYPOINT instruction is used to configure and run a container as an executable. It will be main process inside the container. So it will run  after starting the container</p>



<p class="has-medium-font-size wp-block-paragraph"><strong> What is the differenet between CMD vs Entrypoint</strong>?</p>



<p class="wp-block-paragraph">CMD commands are ignored by Daemon when there are parameters stated within the docker run command.<br>ENTRYPOINT instructions are not ignored but instead are appended as command line parameters by treating those as arguments of the command.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bestdevops.com/docker-and-its-brief/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Devops simplified</title>
		<link>https://www.bestdevops.com/devops-simplified/</link>
					<comments>https://www.bestdevops.com/devops-simplified/#respond</comments>
		
		<dc:creator><![CDATA[tahashinaws]]></dc:creator>
		<pubDate>Thu, 18 Aug 2022 05:41:40 +0000</pubDate>
				<category><![CDATA[DevOps]]></category>
		<guid isPermaLink="false">https://www.bestdevops.com/?p=26590</guid>

					<description><![CDATA[What is Devops? Devops is cultural practice to remove barrier between development team and operation team in order to increase [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">What is Devops?</p>



<p class="wp-block-paragraph">Devops is cultural practice to remove barrier between development team and operation team in order to increase efficiency of development, delivery and maintenance.</p>



<p class="wp-block-paragraph">What Exactly Devops do?</p>



<p class="wp-block-paragraph">Main responsibility of Devops is to reduce the release cycle using automation, architecting devops infrastructure and brings better visibility of the system behavior and performance, discover bottlenecks of the system.</p>



<p class="wp-block-paragraph">What are the list of DevOps Tools?</p>



<p class="wp-block-paragraph">build tools like maven, composer, gradle, nuget, configuration management tools such as ansible, chef infrastructure tools: terraform, cloud formation containerization tools: docker kubernetes</p>



<p class="wp-block-paragraph"> How DevOps and SRE are different?</p>



<p class="wp-block-paragraph">Devops deals to automate and maintain faster release using different automation tools, set up infrastructure. SRE deals with maintain stability of the system, faster recovery and brings visibility  systems behavior and performance, reporting.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.bestdevops.com/devops-simplified/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
