lemonldap-ng/po-doc/fr/pages/documentation/1.9/docker.html

80 lines
2.8 KiB
HTML
Raw Normal View History

2016-02-10 11:17:52 +01:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr"
lang="fr" dir="ltr">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title><!-- metadata --><!-- style sheet links -->
<meta name="generator" content="Hors ligne" />
<meta name="version" content="Hors-ligne 0.1" />
<link rel="stylesheet" media="all" type="text/css" href="../../../css/all.css" />
<link rel="stylesheet" media="screen" type="text/css" href="../../../css/screen.css" />
<link rel="stylesheet" media="print" type="text/css" href="../../../css/print.css" />
</head>
<body>
<div class="dokuwiki export">
<h1 class="sectionedit1" id="lemonldapng_in_docker">LemonLDAP::NG in Docker</h1>
<div class="level1">
<p>
<img src="../../../media/documentation/lemonldap-ng-docker.png" class="mediacenter" alt="" />
</p>
</div><!-- EDIT1 SECTION "LemonLDAP::NG in Docker" [1-93] -->
<h2 class="sectionedit2" id="presentation">Présentation</h2>
<div class="level2">
<p>
<a href="https://www.docker.com/" class="urlextern" title="https://www.docker.com/" rel="nofollow">Docker</a> allows do run application into containers.
</p>
<p>
You can find a Docker image for LemonLDAP::NG in this repository: <a href="https://hub.docker.com/r/coudot/lemonldap-ng/" class="urlextern" title="https://hub.docker.com/r/coudot/lemonldap-ng/" rel="nofollow">https://hub.docker.com/r/coudot/lemonldap-ng/</a>
</p>
<p>
See also this github project: <a href="https://github.com/coudot/lemonldap-ng-docker" class="urlextern" title="https://github.com/coudot/lemonldap-ng-docker" rel="nofollow">https://github.com/coudot/lemonldap-ng-docker</a>
</p>
</div><!-- EDIT2 SECTION "Presentation" [94-388] -->
<h2 class="sectionedit3" id="usage">Utilisation</h2>
<div class="level2">
<p>
Prerequisites:
</p>
<ul>
<li class="level1"><div class="li"> Add auth.example.com/manager.example.com/test1.example.com/test2.example.com to /etc/hosts on the host</div>
</li>
</ul>
<pre class="code">echo "127.0.0.1 auth.example.com manager.example.com test1.example.com test2.example.com" | sudo tee -a /etc/hosts</pre>
<ul>
<li class="level1"><div class="li"> Map the container port 80 to host port 80 (option -p)</div>
</li>
<li class="level1"><div class="li"> Add reload.example.com to /etc/hosts in the container (option add-host)</div>
</li>
</ul>
<pre class="code">docker run -d --add-host reload.example.com:127.0.0.1 -p 80:80 coudot/lemonldap-ng</pre>
<p>
Then connect to <a href="http://auth.example.com" class="urlextern" title="http://auth.example.com" rel="nofollow">http://auth.example.com</a> with your browser and log in with dwho/dwho.
</p>
</div>
</div><!-- closes <div class="dokuwiki export">--></body></html>