Resources attached to the Road To DevOps tutorial https://blog.noobtoroot.xyz/road-to-devops/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

201 lines
13 KiB

<!-- .slide: data-background="#2E2E2E" data-state="nologo-slide" -->
# Installation et environnement
@@
<div class="sl-block" data-block-type="text" style="height: auto; min-width: 30px; min-height: 30px; width: 960px; left: 0px; top: 0px;" data-block-id="74923f3e807703231fb8e84bae2011ba">
<div class="sl-block-content" data-placeholder-tag="p" data-placeholder-text="Text" style="z-index: 10;">
<h2>En fonction de l'OS</h2>
</div>
</div>
<div class="sl-block" data-block-type="image" style="min-width: 4px; min-height: 4px; width: 118px; height: 140px; left: 49px; top: 112px;" data-block-id="2f9aa539dd1b6efb472a96d52fb65094">
<div class="sl-block-content" style="z-index: 11;">
<img style="" data-natural-width="265" data-natural-height="314" data-lazy-loaded="" src="images/03-installation/tux.png"/>
</div>
</div>
<div class="sl-block" data-block-type="image" style="min-width: 4px; min-height: 4px; width: 112px; height: 112px; left: 48px; top: 294px;" data-block-id="c750904d4b3ddeddd1bef665c604ea9c">
<div class="sl-block-content" style="z-index: 12;">
<img style="" data-natural-width="512" data-natural-height="512" data-lazy-loaded="" src="images/03-installation/windows.png"/>
</div>
</div>
<div class="sl-block" data-block-type="text" style="height: auto; min-width: 30px; min-height: 30px; width: 739px; left: 200px; top: 280px;" data-block-id="f47f5e3832a3cc82f06776f6c3ff7254">
<div class="sl-block-content" data-placeholder-tag="p" data-placeholder-text="Text" style="z-index: 13;">
<p style="text-align: left;">Git Pour Windows : Git Bash + Git GUI + Shell Integration</p>
<p style="text-align: left;">
<a href="https://gitforwindows.org/" target="_blank">https://gitforwindows.org/</a>
</p>
</div>
</div>
<div class="sl-block" data-block-type="image" style="min-width: 4px; min-height: 4px; width: 138px; height: 138px; left: 39px; top: 460px;" data-block-id="c3c52391b0686bd111a16d8ac4cdeabc">
<div class="sl-block-content" style="z-index: 15;">
<img style="" data-natural-width="225" data-natural-height="225" data-lazy-loaded="" src="images/03-installation/macos.png"/>
</div>
</div>
<div class="sl-block" data-block-type="text" style="height: auto; min-width: 30px; min-height: 30px; width: 600px; left: 200px; top: 143px;" data-block-id="e0905297a65f90528af074a43f931c60">
<div class="sl-block-content" data-placeholder-tag="p" data-placeholder-text="Text" style="z-index: 16;">
<p style="text-align: left;">Centos / Fedora : <code>yum install git</code></p>
<p style="text-align: left;">Debian / Ubuntu :&nbsp; <code>apt-get install</code></p>
</div>
</div>
<div class="sl-block" data-block-type="text" style="height: auto; min-width: 30px; min-height: 30px; width: 739px; left: 200px; top: 491px;" data-block-id="5a5437c3f1727eefb658c44c0c3e9b89">
<div class="sl-block-content" data-placeholder-tag="p" data-placeholder-text="Text" style="z-index: 17;" dir="ui">
<p style="text-align: left;">&nbsp;Via l’installeur graphique</p>
<p style="text-align: left;">
<a href="https://sourceforge.net/projects/git-osx-installer/" target="_blank">https://sourceforge.net/projects/git-osx-installer/</a>
</p>
</div>
</div>
@@
<div class="sl-block" data-block-type="text" style="height: auto; min-width: 30px; min-height: 30px; width: 960px; left: 0px; top: 0px;" data-block-id="f2303b2482e0dfeb86404506c463c3eb">
<div class="sl-block-content" data-placeholder-tag="p" data-placeholder-text="Text" style="z-index: 10;">
<h2>Logiciels</h2>
</div>
</div>
<div class="sl-block" data-block-type="image" style="min-width: 4px; min-height: 4px; width: 94px; height: 95px; left: 47px; top: 133px;" data-block-id="cafbeccc3e26381217b2c182fd623b3d">
<div class="sl-block-content" style="z-index: 11;">
<img src="images/03-installation/kracken.png" data-natural-width="468" data-natural-height="471" style=""/>
</div>
</div>
<div class="sl-block" data-block-type="text" style="height: auto; min-width: 30px; min-height: 30px; left: 160px; top: 142px;" data-block-id="e7f49821725b1008565db6c5a68d222b">
<div class="sl-block-content" data-placeholder-tag="p" data-placeholder-text="Text" style="z-index: 12; text-align: left;">
<p>GitKaken : produit par Axesoft, gratuit pour des utilisation non commerciale.</p>
</div>
</div>
<div class="sl-block" data-block-type="image" style="min-width: 4px; min-height: 4px; width: 79px; height: 79px; left: 55px; top: 280px;" data-block-id="440772721798dc3dea7351f87e53a560">
<div class="sl-block-content" style="z-index: 13;">
<img src="images/03-installation/code.png" style="" data-natural-width="1200" data-natural-height="1195"/>
</div>
</div>
<div class="sl-block" data-block-type="text" style="height: auto; min-width: 30px; min-height: 30px; left: 160px; top: 280px;" data-block-id="c5bdcfe62b27d2f8e20d3eb627f34670">
<div class="sl-block-content" data-placeholder-tag="p" data-placeholder-text="Text" style="z-index: 14; text-align: left;">
<p>VSCode : open source, avec les extensions
<a href="https://marketplace.visualstudio.com/items?itemName=donjayamanne.githistory" target="_blank">GitHistory</a> et
<a href="https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens" target="_blank">GitLens</a>.
</p>
</div>
</div>
<div class="sl-block" data-block-type="image" style="min-width: 4px; min-height: 4px; width: 102px; height: 50px; left: 39px; top: 420px;" data-block-id="6ce280991bef4440d4478b0fb0f4d29b">
<div class="sl-block-content" style="z-index: 15;">
<img src="images/03-installation/egit.png" style="left: 0px; top: 0px; width: 251px; height: 50px;" data-natural-width="978" data-natural-height="193" data-crop-x="0" data-crop-y="0" data-crop-width="0.405707" data-crop-height="1"/>
</div>
</div>
<div class="sl-block" data-block-type="text" style="height: auto; min-width: 30px; min-height: 30px; left: 168px; top: 406px;" data-block-id="a9afe4542772755536b54aa95a8b1745">
<div class="sl-block-content" data-placeholder-tag="p" data-placeholder-text="Text" style="z-index: 16; text-align: left;">
<p>Plugin officiel pour Eclipse, intégré mais pas de visualisation de l'arbre git.</p>
</div>
</div>
<div class="sl-block" data-block-type="text" style="height: auto; min-width: 30px; min-height: 30px; left: 120px; top: 630px;" data-block-id="c845adb9bd5fbe523b576142d3d08ffb">
<div class="sl-block-content" data-placeholder-tag="p" data-placeholder-text="Text" style="z-index: 18; text-align: left;">
<p style="text-align:center">
<a href="https://git-scm.com/downloads/guis" target="_blank">https://git-scm.com/downloads/guis</a>
</p>
</div>
</div>
<div class="sl-block" data-block-type="text" style="height: auto; min-width: 30px; min-height: 30px; left: 39px; top: 535px;" data-block-id="3b66bf5e1f91cf99543012de5c25e918">
<div class="sl-block-content" data-placeholder-tag="p" data-placeholder-text="Text" style="z-index: 19; text-align: left;">
<p><code>gitk --all</code>&nbsp; Intégré avec git fournit le minimum.</p>
</div>
</div>
@@
<div class="sl-block" data-block-type="text" style="height: auto; min-width: 30px; min-height: 30px; width: 960px; left: 0px; top: 1px;" data-block-id="14ea546f27201b21a0be0f1897ac71ae">
<div class="sl-block-content" data-placeholder-tag="p" data-placeholder-text="Text" style="z-index: 10;">
<h2>Configuration</h2>
</div>
</div>
<div class="sl-block" data-block-type="text" style="height: auto; min-width: 30px; min-height: 30px; width: 934px; left: 16px; top: 112px;" data-block-id="6f84dd82248a59b0a82017d53e940017">
<div class="sl-block-content" data-placeholder-tag="p" data-placeholder-text="Text" style="z-index: 11; text-align: left;">
<p>3 niveaux de configuration possible (avec surcharge)</p>
<ul>
<li>Globale à tout le système: <code><git-inst>/etc/gitconfig</code></li>
</ul>
<p>&nbsp;</p>
<ul>
<li>Propre à l'utilisateur : <code>$HOME/.gitconfig</code></li>
</ul>
<p>&nbsp;</p>
<ul>
<li>Spécifique au dépôt :&nbsp; <code>.git/config</code></li>
</ul>
</div>
</div>
<div class="sl-block" data-block-type="code" style="min-width: 30px; min-height: 30px; width: 504px; height: 80px; left: 39px; top: 190px;" data-block-id="52833b779c33c1f222bd48d2f219b71a">
<div class="sl-block-content notranslate" data-highlight-theme="github-gist" style="z-index: 12;">
<pre class="shell">
<code data-line-numbers="">$ git config --system &lt;key&gt; &lt;value&gt;
$ git config -e --system</code></pre>
</div>
</div>
<div class="sl-block" data-block-type="code" style="min-width: 30px; min-height: 30px; width: 504px; height: 80px; left: 45px; top: 293px;" data-block-id="1f90c4e8d4f71cd1111a7feebfbd518d">
<div class="sl-block-content notranslate" data-highlight-theme="github-gist" style="z-index: 13;">
<pre class="shell">
<code data-line-numbers="">$ git config --global &lt;key&gt; &lt;value&gt;
$ git config -e --global</code></pre>
</div>
</div>
<div class="sl-block" data-block-type="code" style="min-width: 30px; min-height: 30px; width: 504px; height: 80px; left: 45px; top: 400px;" data-block-id="3a0c0b0bc14ead8f604a6473f4ab5326">
<div class="sl-block-content notranslate" data-highlight-theme="github-gist" style="z-index: 15;">
<pre class="shell">
<code data-line-numbers="">$ git config &lt;key&gt; &lt;value&gt;
$ git config -e </code></pre>
</div>
</div>
@@
<div class="sl-block" data-block-type="text" style="height: auto; min-width: 30px; min-height: 30px; width: 960px; left: 0px; top: 0px;" data-block-id="14ed3f8605371bbb423d90c66e5a7c8f">
<div class="sl-block-content" data-placeholder-tag="p" data-placeholder-text="Text" style="z-index: 11;">
<h2>Exemples de configuration</h2>
</div>
</div>
<div class="sl-block" data-block-type="text" style="height: auto; min-width: 30px; min-height: 30px; left: 16px; top: 150px;" data-block-id="e3e21eb861cbf7b1c8400e3d0a027aea">
<div class="sl-block-content" data-placeholder-tag="p" data-placeholder-text="Text" style="z-index: 12; text-align: left;">
<p>Configuration du nom d'utilisateur et de son e-mail :</p>
<p>&nbsp;</p>
<p><br/>Autres configurations possibles :</p>
</div>
</div>
<div class="sl-block" data-block-type="code" style="min-width: 30px; min-height: 30px; width: 650px; height: 80px; left: 48px; top: 190px;" data-block-id="77534c460bdae6cebf7743e4f063e6a3">
<div class="sl-block-content notranslate" data-highlight-theme="github-gist" style="z-index: 13;">
<pre class="shell">
<code data-line-numbers="">$ git config --global user.name “Jean BON”
$ git config --global user.email jean.bon@exemple.fr</code></pre>
</div>
</div>
<div class="sl-block" data-block-type="code" style="min-width: 30px; min-height: 30px; width: 750px; height: 100px; left: 48px; top: 360px;" data-block-id="69192e27f555149e02d3cf4511aea72a">
<div class="sl-block-content notranslate" data-highlight-theme="github-gist" style="z-index: 14;">
<pre class="shell">
<code data-line-numbers="">$ git config --global core.editor vim
$ git config --global color.ui true
$ git config --global http.proxy http://hostname:3128</code></pre>
</div>
</div>
@@
<div class="sl-block" data-block-type="text" style="height: auto; width: 960px; left: 0px; top: 0px;" data-block-id="cdf264b7a836078efa99e4436abf30bc">
<div class="sl-block-content" data-placeholder-tag="p" data-placeholder-text="Text" style="z-index: 11;">
<h2>Ignorer des fichiers</h2>
</div>
</div>
<div class="sl-block" data-block-type="text" style="height: auto; min-width: 30px; min-height: 30px; width: 960px; left: 0px; top: 140px; text-align:left" data-block-id="cc60d98982c119f93def1f0c894f1bbe">
<div class="sl-block-content" data-placeholder-tag="p" data-placeholder-text="Text" style="z-index: 12;">
<p>Par configuration d'un fichier à différents niveau :</p>
</div>
</div>
<div class="sl-block" data-block-type="text" style="height: auto; min-width: 30px; min-height: 30px; width: 960px; left: 0px; top: 210px;" data-block-id="c736a12bf710338a078f004714c23c76">
<div class="sl-block-content" data-placeholder-tag="p" data-placeholder-text="Text" style="z-index: 13;">
<p style="text-align: left;">Versionné dans le dépôt (la meilleure solution).</p>
<p style="text-align: left;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; `<nom_depot>/.gitignore`</p>
<p style="text-align: left;">Spécifique au dépôt, non versionné.</p>
<p style="text-align: left;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; `<nom_depot>/.git/info/exclude`</p>
<p style="text-align: left;">Commun à tous les utilisateurs.</p>
<p style="text-align: left;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; `<HOME>/.gitignore`</p>
</div>
</div>
<div class="sl-block" data-block-type="text" style="height: auto; min-width: 30px; min-height: 30px; width: 350px; left: 680px; top: 300px;" data-block-id="3c1f8aa58a1450b1c079689562c9beb0">
<div class="sl-block-content" data-placeholder-tag="p" data-placeholder-text="Text" style="z-index: 14;border-style: solid; border-width: 1px;">
<pre style="font-size:0.5em;"><b>Exemple de fichier .gitignore</b>
node_modules/
dist/*
!dist/kdbxweb.js
*.log
.idea/
</pre>
</div>
</div>