<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Debug School: Joy</title>
    <description>The latest articles on Debug School by Joy (@jobrahma).</description>
    <link>https://www.debug.school/jobrahma</link>
    <image>
      <url>https://www.debug.school/images/nz6QHxBkJaNJQVyFlThxI8WdW7zAYyvG7beNU3HFScg/rs:fill:90:90/g:sm/mb:500000/ar:1/aHR0cHM6Ly93d3cu/ZGVidWcuc2Nob29s/L3VwbG9hZHMvdXNl/ci9wcm9maWxlX2lt/YWdlLzIyMC9iOWM3/YTU0Yy03MTIzLTQx/NjYtODZmYS1jMzc2/Y2EyYzRjNjAucG5n</url>
      <title>Debug School: Joy</title>
      <link>https://www.debug.school/jobrahma</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://www.debug.school/feed/jobrahma"/>
    <language>en</language>
    <item>
      <title>Git assignment- Day 4</title>
      <dc:creator>Joy</dc:creator>
      <pubDate>Fri, 18 Nov 2022 07:22:05 +0000</pubDate>
      <link>https://www.debug.school/jobrahma/git-assignment-day-4-4de</link>
      <guid>https://www.debug.school/jobrahma/git-assignment-day-4-4de</guid>
      <description>&lt;p&gt;&lt;strong&gt;git config&lt;/strong&gt;&lt;br&gt;
Usage: git config -global user.name “[name]”&lt;br&gt;
Usage: git config -global user.email “[email address]”&lt;br&gt;
This command sets the author name and email address respectively to be used with commits.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;git clone&lt;/strong&gt;&lt;br&gt;
Usage: git clone [url]&lt;br&gt;
This command is used to obtain a repository from an existing URL.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;git add&lt;/strong&gt;&lt;br&gt;
Usage: git add [file]&lt;br&gt;
This command adds one or more files to the staging area.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;git commit&lt;/strong&gt;&lt;br&gt;
Usage: git commit -m “message”&lt;br&gt;
This command stores the file permanently in the version history.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;git status&lt;/strong&gt;&lt;br&gt;
shows the current status of the repo. Tracked or untracked files.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;git log&lt;/strong&gt;&lt;br&gt;
shows all the commit history.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;git diff&lt;/strong&gt;&lt;br&gt;
git diff [branch/commit] [branch/commit]&lt;br&gt;
This command shows the differences between the two branches/commits mentioned.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;git rm&lt;/strong&gt;&lt;br&gt;
Usage: git rm [file]&lt;br&gt;
This command deletes the file from your working directory and stages the deletion.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;git revert&lt;/strong&gt;&lt;br&gt;
puts the commit id below the specified commit id on top.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;git branch&lt;/strong&gt;&lt;br&gt;
Usage: git branch [branch name]&lt;br&gt;
This command creates a new branch.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;git checkout&lt;/strong&gt;&lt;br&gt;
goes to the specified branch.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;git merge&lt;/strong&gt;&lt;br&gt;
Usage: git merge [branch name]&lt;br&gt;
This command merges the specified branch’s history into the current branch. we can also pick the merge policy.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;git pull&lt;/strong&gt;&lt;br&gt;
This command does fetch + merge.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;git push&lt;/strong&gt;&lt;br&gt;
pushes the local repo commits to remote repo and to specified branch.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Docker Assignment 1-Day 3</title>
      <dc:creator>Joy</dc:creator>
      <pubDate>Wed, 16 Nov 2022 05:12:13 +0000</pubDate>
      <link>https://www.debug.school/jobrahma/docker-assignment-1-day-3-4f37</link>
      <guid>https://www.debug.school/jobrahma/docker-assignment-1-day-3-4f37</guid>
      <description>&lt;p&gt;&lt;strong&gt;How can we store container data in memory using docker volume?&lt;/strong&gt;&lt;br&gt;
We can use the tempfs as mount type. &lt;/p&gt;

&lt;p&gt;docker run --mount type=tmpfs,dst=/tmp command creates a blank tmpfs device and attaches it to the new container’s /tmp file tree. Any files created under this file tree will be in memory storage rather than on disk. Using the --tmpfs flag is also doing the same thing but the destination is not configurable.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Docker Assignment 3- Day 2</title>
      <dc:creator>Joy</dc:creator>
      <pubDate>Tue, 15 Nov 2022 06:34:00 +0000</pubDate>
      <link>https://www.debug.school/jobrahma/docker-assignmen-3-day-2-5hem</link>
      <guid>https://www.debug.school/jobrahma/docker-assignmen-3-day-2-5hem</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is a docker image?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Docker image is a collection of repositories. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;There could be multiple layers in a docker image.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;While pulling a docker image we pull the top layer and along with it all the layers linked to it are also pulled.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The layers are linked in a parent child fashion, where the second top layer is the parent of top layer and so on.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The last layer is the root file system. Each layer is its own file system.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;When the container is running, all the layers are merged and mounted to the container.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;When the container is stopped, the merged mount is gone. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The changes in the file system of each layer is maintained in a separate diff folder and when the container starts the changes are also merged in the mount.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Docker Assignment 1- Day 2</title>
      <dc:creator>Joy</dc:creator>
      <pubDate>Tue, 15 Nov 2022 04:59:53 +0000</pubDate>
      <link>https://www.debug.school/jobrahma/docker-assignment-1-day-2-1lfh</link>
      <guid>https://www.debug.school/jobrahma/docker-assignment-1-day-2-1lfh</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is the use of docker update command?&lt;/strong&gt;&lt;br&gt;
docker update is used to update configs of one or more containers. We can set cpu resources, memory limitations, restart policy etc of containers using this command.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is the use of Docker wait?&lt;/strong&gt;&lt;br&gt;
Docker wait container blocks until the container is exited and returns the exit code. &lt;/p&gt;

</description>
    </item>
    <item>
      <title>Docker Assignment 2- Day 1</title>
      <dc:creator>Joy</dc:creator>
      <pubDate>Mon, 14 Nov 2022 10:06:00 +0000</pubDate>
      <link>https://www.debug.school/jobrahma/docker-assignment-2-day-1-1074</link>
      <guid>https://www.debug.school/jobrahma/docker-assignment-2-day-1-1074</guid>
      <description>&lt;p&gt;&lt;strong&gt;what is the difference between docker pause and docker unpause?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Docker pause suspends the processes running inside the container and does that by &lt;strong&gt;freezer cgroup&lt;/strong&gt;. In the traditional method of suspending a process in Linux, SIGSTOP is used but it is observable by the process that it is being suspended. But docker pause uses freezer cgroup, so the process is unable to capture that it is being suspended.&lt;/p&gt;

&lt;p&gt;The docker unpause command unsuspends the processes inside the specified container. The freezer cgroup checkpoints the images of the tasks before suspending them, so while unsuspending they can resume. The checkpointed tasks can also be migrated before restarting. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is the diff between docker stop and docker kill?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Docker Stop will send SIGTERM signal to the main process and after allowing sometime to gracefully stop the process, the will send SIGKILL. So the process gets some time to close gracefully.&lt;/p&gt;

&lt;p&gt;Docker kill will send the SIGKILL immediately to the main process inside the container. The default signal can also be changed using --signal flag. &lt;/p&gt;

</description>
    </item>
    <item>
      <title>Docker Assignment</title>
      <dc:creator>Joy</dc:creator>
      <pubDate>Mon, 14 Nov 2022 07:23:50 +0000</pubDate>
      <link>https://www.debug.school/jobrahma/docker-assignment-3g93</link>
      <guid>https://www.debug.school/jobrahma/docker-assignment-3g93</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is Docker?&lt;/strong&gt;&lt;br&gt;
It is a container management tool.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why Docker?&lt;/strong&gt;&lt;br&gt;
To setup application faster, without OS cost.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is Container?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Container is a software unit with its own network, process, root filesystem etc. resources, which can be used to set up applications. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Docker workflow and how container is created?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The docker cli from docker demon will talk to docker client and then docker client will pull the images from registry. Once the images are pulled we can run the images using the commands from docker client.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
