8000 drafte a new release · Sengorius/sengorius.github.io@bb8d462 · GitHub
[go: up one dir, main page]

Skip to content

Commit bb8d462

Browse files
author
Sengorius
committed
drafte a new release
1 parent 00338b9 commit bb8d462

18 files changed

+182
-2
lines changed

docs/genindex.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
<script src="static/js/html5shiv.min.js"></script>
1313
<![endif]-->
1414

15+
<script src="static/jquery.js"></script>
16+
<script src="static/_sphinx_javascript_frameworks_compat.js"></script>
1517
<script data-url_root="./" id="documentation_options" src="static/documentation_options.js"></script>
1618
<script src="static/doctools.js"></script>
1719
<script src="static/sphinx_highlight.js"></script>

docs/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
<script src="static/js/html5shiv.min.js"></script>
1414
<![endif]-->
1515

16+
<script src="static/jquery.js"></script>
17+
<script src="static/_sphinx_javascript_frameworks_compat.js"></script>
1618
<script data-url_root="./" id="documentation_options" src="static/documentation_options.js"></script>
1719
<script src="static/doctools.js"></script>
1820
<script src="static/sphinx_highlight.js"></script>

docs/objects.inv

23 Bytes
Binary file not shown.

docs/repositories/docker-proxy/docker-exec.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
<script src="../../static/js/html5shiv.min.js"></script>
1414
<![endif]-->
1515

16+
<script src="../../static/jquery.js"></script>
17+
<script src="../../static/_sphinx_javascript_frameworks_compat.js"></script>
1618
<script data-url_root="../../" id="documentation_options" src="../../static/documentation_options.js"></script>
1719
<script src="../../static/doctools.js"></script>
1820
<script src="../../static/sphinx_highlight.js"></script>
@@ -53,6 +55,7 @@
5355
<li class="toctree-l3"><a class="reference internal" href="#limitations-of-dockerexec">Limitations of DockerExec</a></li>
5456
<li class="toctree-l3"><a class="reference internal" href="#spawn-global-network-containers">Spawn global network containers</a></li>
5557
<li class="toctree-l3"><a class="reference internal" href="#a-minimal-configuration-for-php">A Minimal Configuration for PHP</a></li>
58+
<li class="toctree-l3"><a class="reference internal" href="#headstarting-the-docker-containers">Headstarting the Docker Containers</a></li>
5659
</ul>
5760
</li>
5861
<li class="toctree-l2"><a class="reference internal" href="mailcatching.html">E-Mail Catching</a></li>
@@ -216,9 +219,37 @@ <h2>Limitations of DockerExec<a class="headerlink" href="#limitations-of-dockere
216219
</div>
217220
<p>These files can be created within any current directory with the <code class="docutils literal notranslate"><span class="pre">DockerExec</span> <span class="pre">proxy</span> <span class="pre">generate</span> <span class="pre">${project-name}</span></code> command.
218221
See <code class="docutils literal notranslate"><span class="pre">DockerExec</span> <span class="pre">help</span></code> for better usage info.</p>
222+
</section>
223+
<section id="headstarting-the-docker-containers">
224+
<span id="docs-docker-proxy-headstarting-containers"></span><h2>Headstarting the Docker Containers<a class="headerlink" href="#headstarting-the-docker-containers" title="Permalink to this heading"></a></h2>
219225
<p>Use the <code class="docutils literal notranslate"><span class="pre">START_CONTAINER</span></code> variable to define the container, that will be allocated with <code class="docutils literal notranslate"><span class="pre">docker</span> <span class="pre">exec</span> <span class="pre">-it</span></code> at the
220226
end of a <code class="docutils literal notranslate"><span class="pre">DockerExec</span> <span class="pre">(dev|prod|proxy)</span> <span class="pre">start</span></code> command. If <code class="docutils literal notranslate"><span class="pre">START_CONTAINER=none</span></code> is set, the <code class="docutils literal notranslate"><span class="pre">docker</span> <span class="pre">exec</span></code> will be
221227
omitted. If not defined, it falls back to search for the first container with <code class="docutils literal notranslate"><span class="pre">-app</span></code> suffix.</p>
228+
<p>If you like to use DockerExec commands within other shell scripts, e.g. starting multiple project with a single
229+
execution, the start container would be blocking further commands, if the current shell is adopted by the container tty.
230+
In this case, the variable <code class="docutils literal notranslate"><span class="pre">INTERRUPT_START_CONTAINER</span></code> will override the start container. Add an
231+
<code class="docutils literal notranslate"><span class="pre">export</span> <span class="pre">INTERRUPT_START_CONTAINER=yes</span></code> to the top of your shell script, to prevent the <code class="docutils literal notranslate"><span class="pre">docker</span> <span class="pre">exec</span></code> like this.</p>
232+
<div class="highlight-shell notranslate"><div class="highlight"><pre><span></span><span class="ch">#!/usr/bin/env bash</span>
233+
234+
<span class="nv">ALL_PATHS</span><span class="o">=(</span><span class="s2">&quot;/path/to/project1&quot;</span><span class="w"> </span><span class="s2">&quot;/path/to/project2&quot;</span><span class="w"> </span><span class="s2">&quot;/path/to/project3&quot;</span><span class="o">)</span>
235+
<span class="nb">export</span><span class="w"> </span><span class="nv">INTERRUPT_START_CONTAINER</span><span class="o">=</span>yes
236+
237+
<span class="k">for</span><span class="w"> </span>project<span class="w"> </span><span class="k">in</span><span class="w"> </span><span class="s2">&quot;</span><span class="si">${</span><span class="nv">ALL_PATHS</span><span class="p">[@]</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">;</span><span class="w"> </span><span class="k">do</span>
238+
<span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="o">[[</span><span class="w"> </span>!<span class="w"> </span>-d<span class="w"> </span><span class="s2">&quot;</span><span class="nv">$project</span><span class="s2">&quot;</span><span class="w"> </span><span class="o">]]</span><span class="p">;</< 1115 span class=pl-ent>span><span class="w"> </span><span class="k">then</span>
239+
<span class="w"> </span><span class="nb">echo</span><span class="w"> </span><span class="s2">&quot;No project found on </span><span class="nv">$project</span><span class="s2">!&quot;</span>
240+
<span class="w"> </span><span class="nb">exit</span><span class="w"> </span><span class="m">1</span>
241+
<span class="w"> </span><span class="k">fi</span>
242+
243+
<span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="o">[[</span><span class="w"> </span>!<span class="w"> </span>-f<span class="w"> </span><span class="s2">&quot;</span><span class="nv">$project</span><span class="s2">/.env&quot;</span><span class="w"> </span><span class="o">]]</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="o">[[</span><span class="w"> </span>!<span class="w"> </span>-f<span class="w"> </span><span class="s2">&quot;</span><span class="nv">$project</span><span class="s2">/docker-compose.proxy.yaml&quot;</span><span class="w"> </span><span class="o">]]</span><span class="p">;</span><span class="w"> </span><span class="k">then</span>
244+
<span class="w"> </span><span class="nb">echo</span><span class="w"> </span><span class="s2">&quot;Project on </span><span class="nv">$project</span><span class="s2"> is not prepared for Docker-Proxy-Stack!&quot;</span>
245+
<span class="w"> </span><span class="nb">exit</span><span class="w"> </span><span class="m">1</span>
246+
<span class="w"> </span><span class="k">fi</span>
247+
248+
<span class="w"> </span><span class="nb">cd</span><span class="w"> </span><span class="s2">&quot;</span><span class="nv">$project</span><span class="s2">&quot;</span>
249+
<span class="w"> </span>DockerExec<span class="w"> </span>proxy<span class="w"> </span>start
250+
<span class="k">done</span>
251+
</pre></div>
252+
</div>
222253
</section>
223254
</section>
224255

docs/repositories/docker-proxy/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
<script src="../../static/js/html5shiv.min.js"></script>
1414
<![endif]-->
1515

16+
<script src="../../static/jquery.js"></script>
17+
<script src="../../static/_sphinx_javascript_frameworks_compat.js"></script>
1618
<script data-url_root="../../" id="documentation_options" src="../../static/documentation_options.js"></script>
1719
<script src="../../static/doctools.js"></script>
1820
<script src="../../static/sphinx_highlight.js"></script>

docs/repositories/docker-proxy/install.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
<script src="../../static/js/html5shiv.min.js"></script>
1414
<![endif]-->
1515

16+
<script src="../../static/jquery.js"></script>
17+
<script src="../../static/_sphinx_javascript_frameworks_compat.js"></script>
1618
<script data-url_root="../../" id="documentation_options" src="../../static/documentation_options.js"></script>
1719
<script src="../../static/doctools.js"></script>
1820
<script src="../../static/sphinx_highlight.js"></script>

docs/repositories/docker-proxy/mailcatching.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
<script src="../../static/js/html5shiv.min.js"></script>
1414
<![endif]-->
1515

16+
<script src="../../static/jquery.js"></script>
17+
<script src="../../static/_sphinx_javascript_frameworks_compat.js"></script>
1618
<script data-url_root="../../" id="documentation_options" src="../../static/documentation_options.js"></script>
1719
<script src="../../static/doctools.js"></script>
1820
<script src="../../static/sphinx_highlight.js"></script>

docs/repositories/docker-proxy/spawn-examples.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
<script src="../../static/js/html5shiv.min.js"></script>
1414
<![endif]-->
1515

16+
<script src="../../static/jquery.js"></script>
17+
<script src="../../static/_sphinx_javascript_frameworks_compat.js"></script>
1618
<script data-url_root="../../" id="documentation_options" src="../../static/documentation_options.js"></script>
1719
<script src="../../static/doctools.js"></script>
1820
<script src="../../static/sphinx_highlight.js"></script>

docs/repositories/docker-proxy/upgrade-v2.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
<script src="../../static/js/html5shiv.min.js"></script>
1414
<![endif]-->
1515

16+
<script src="../../static/jquery.js"></script>
17+
<script src="../../static/_sphinx_javascript_frameworks_compat.js"></script>
1618
<script data-url_root="../../" id="documentation_options" src="../../static/documentation_options.js"></script>
1719
<script src="../../static/doctools.js"></script>
1820
<script src="../../static/sphinx_highlight.js"></script>

docs/repositories/mezzio-messenger/configuration.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
<script src="../../static/js/html5shiv.min.js"></script>
1414
<![endif]-->
1515

16+
<script src="../../static/jquery.js"></script>
17+
<script src="../../static/_sphinx_javascript_frameworks_compat.js"></script>
1618
<script data-url_root="../../" id="documentation_options" src="../../static/documentation_options.js"></script>
1719
<script src="../../static/doctools.js"></script>
1820
<script src="../../static/sphinx_highlight.js"></script>

0 commit comments

Comments
 (0)
0