Dieser Commit ist enthalten in:
milkmaker 2022-10-19 16:17:12 +00:00
Ursprung 9965e450fa
Commit 4a65ea2f13
5 geänderte Dateien mit 32 neuen und 14 gelöschten Zeilen

Datei anzeigen

@ -2391,22 +2391,28 @@
<h1>Dockerfiles anpassen</h1> <h1>Dockerfiles anpassen</h1>
<p>Sie mĂĽssen die Override-Datei mit den entsprechenden Build-Tags in den mailcow: dockerized Root-Ordner (d.h. <code>/opt/mailcow-dockerized</code>) kopieren:</p> <p>Sie mĂĽssen die Override-Datei mit den entsprechenden Build-Tags in den mailcow: dockerized Root-Ordner (d.h. <code>/opt/mailcow-dockerized</code>) kopieren:
<div class="highlight"><pre><span></span><code>cp helper-scripts/docker-compose.override.yml.d/BUILD_FLAGS/docker-compose.override.yml docker-compose.override.yml <div class="highlight"><pre><span></span><code>cp helper-scripts/docker-compose.override.yml.d/BUILD_FLAGS/docker-compose.override.yml docker-compose.override.yml
</code></pre></div></p>
<p>Nehmen Sie Ihre Ă„nderungen in <code>data/Dockerfiles/$service</code> vor und erstellen Sie das Image lokal:
<div class="highlight"><pre><span></span><code>docker build data/Dockerfiles/$service -t mailcow/$service:$tag
</code></pre></div> </code></pre></div>
<p>Nehmen Sie Ihre Änderungen in <code>data/Dockerfiles/$service</code> vor und erstellen Sie das Image lokal:</p> (Ohne persönlichen :$tag wird automatisch :latest verwendet.)</p>
<div class="highlight"><pre><span></span><code>docker build data/Dockerfiles/service -t mailcow/$service <p>Nun muss dieser gerade erstellte Container in docker-compose.override.yml aktiviert werden, z.B.:
</code></pre></div> <div class="highlight"><pre><span></span><code>$service-mailcow:
<p>Nun werden die geänderten Container automatisch neu erstellt:</p> build: ./data/Dockerfiles/$service
image: mailcow/$service:$tag
</code></pre></div></p>
<p>Abschliessend müssen die geänderten Container automatisch neu erstellt werden:
<div class="highlight"><pre><span></span><code>docker compose up -d <div class="highlight"><pre><span></span><code>docker compose up -d
</code></pre></div> </code></pre></div></p>
<hr> <hr>
<div class="md-source-file"> <div class="md-source-file">
<small> <small>
Letztes Update: Letztes Update:
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_datetime">2022-09-01 09:33:47</span> <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_datetime">2022-10-19 17:34:14</span>
</small> </small>

Datei anzeigen

@ -2394,9 +2394,15 @@
<p>You need to copy the override file with corresponding build tags to the mailcow: dockerized root folder (i.e. <code>/opt/mailcow-dockerized</code>):</p> <p>You need to copy the override file with corresponding build tags to the mailcow: dockerized root folder (i.e. <code>/opt/mailcow-dockerized</code>):</p>
<div class="highlight"><pre><span></span><code>cp helper-scripts/docker-compose.override.yml.d/BUILD_FLAGS/docker-compose.override.yml docker-compose.override.yml <div class="highlight"><pre><span></span><code>cp helper-scripts/docker-compose.override.yml.d/BUILD_FLAGS/docker-compose.override.yml docker-compose.override.yml
</code></pre></div> </code></pre></div>
<p>Make your changes in <code>data/Dockerfiles/$service</code> and build the image locally:</p> <p>Customize <code>data/Dockerfiles/$service</code> and build the image locally:
<div class="highlight"><pre><span></span><code>docker build data/Dockerfiles/service -t mailcow/$service <div class="highlight"><pre><span></span><code>docker build data/Dockerfiles/$service -t mailcow/$service:$tag
</code></pre></div> </code></pre></div>
(without a personalized :$tag docker will use :latest automatically)</p>
<p>Now the created image has to be activated in docker-compose.override.yml, e.g.:
<div class="highlight"><pre><span></span><code>$service-mailcow:
build: ./data/Dockerfiles/$service
image: mailcow/$service:$tag
</code></pre></div></p>
<p>Now auto-recreate modified containers:</p> <p>Now auto-recreate modified containers:</p>
<div class="highlight"><pre><span></span><code>docker compose up -d <div class="highlight"><pre><span></span><code>docker compose up -d
</code></pre></div> </code></pre></div>
@ -2406,7 +2412,7 @@
<small> <small>
Last update: Last update:
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_datetime">2022-09-01 09:33:47</span> <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_datetime">2022-10-19 17:37:41</span>
</small> </small>

Datei anzeigen

@ -2394,9 +2394,15 @@
<p>You need to copy the override file with corresponding build tags to the mailcow: dockerized root folder (i.e. <code>/opt/mailcow-dockerized</code>):</p> <p>You need to copy the override file with corresponding build tags to the mailcow: dockerized root folder (i.e. <code>/opt/mailcow-dockerized</code>):</p>
<div class="highlight"><pre><span></span><code>cp helper-scripts/docker-compose.override.yml.d/BUILD_FLAGS/docker-compose.override.yml docker-compose.override.yml <div class="highlight"><pre><span></span><code>cp helper-scripts/docker-compose.override.yml.d/BUILD_FLAGS/docker-compose.override.yml docker-compose.override.yml
</code></pre></div> </code></pre></div>
<p>Make your changes in <code>data/Dockerfiles/$service</code> and build the image locally:</p> <p>Customize <code>data/Dockerfiles/$service</code> and build the image locally:
<div class="highlight"><pre><span></span><code>docker build data/Dockerfiles/service -t mailcow/$service <div class="highlight"><pre><span></span><code>docker build data/Dockerfiles/$service -t mailcow/$service:$tag
</code></pre></div> </code></pre></div>
(without a personalized :$tag docker will use :latest automatically)</p>
<p>Now the created image has to be activated in docker-compose.override.yml, e.g.:
<div class="highlight"><pre><span></span><code>$service-mailcow:
build: ./data/Dockerfiles/$service
image: mailcow/$service:$tag
</code></pre></div></p>
<p>Now auto-recreate modified containers:</p> <p>Now auto-recreate modified containers:</p>
<div class="highlight"><pre><span></span><code>docker compose up -d <div class="highlight"><pre><span></span><code>docker compose up -d
</code></pre></div> </code></pre></div>
@ -2406,7 +2412,7 @@
<small> <small>
Last update: Last update:
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_datetime">2022-09-01 09:33:47</span> <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_datetime">2022-10-19 17:37:41</span>
</small> </small>

Dateidiff unterdrĂĽckt, weil mindestens eine Zeile zu lang ist

Binäre Datei nicht angezeigt.