Merge branch 'feature/databases' into feature/test-fixes-december-23

This commit is contained in:
Svetlana Maleeva 2024-03-26 16:44:41 +03:00
commit 781313b9f7

View File

@ -19,18 +19,18 @@
<li><cc:LocalizeContent runat="Server" ControlName="~/Controls/Help/Tags/server-version/server-version.ascx" /></li>
</ul>
</div>
<div class="notehelp">The current guide suggests that a test bench has already been implemented in a separate feature/damengdb-compose branch: https://github.com/ONLYOFFICE/Docker-DocumentServer/tree/feature/damengdb-compose/tests/damengdb</div>
<div class="notehelp">The current guide suggests that a test bench has already been implemented in a separate <code>release/v8.1.0</code> branch: https://github.com/ONLYOFFICE/Docker-DocumentServer/tree/release/v8.1.0/tests/damengdb</div>
<h2>Connecting to Dameng server</h2>
<p>The Document Server has several variables, <b><em>DB_TYPE</em></b>, <b><em>DB_HOST</em></b>, <b><em>DB_USER</em></b>, <b><em>DB_NAME</em></b>, <b><em>DB_PORT</em></b>, that allow you to customize your database connection. However, currently only MYSQL/MariaDB and PostgreSQL are supported officially.</p>
<p>To connect DamengDb, modify the entry point script and add connection conditions and parameters to the initialization entry point script of the Document Server image:</p>
<ol>
<li>
Add new db type:
<pre>https://github.com/ONLYOFFICE/Docker-DocumentServer/blob/feature/damengdb-compose/run-document-server.sh#L152C4-L154C9</pre>
<pre>https://github.com/ONLYOFFICE/Docker-DocumentServer/blob/release/v8.1.0/run-document-server.sh#L176</pre>
</li>
<li>
Add the function of remote database creation:
<pre>https://github.com/ONLYOFFICE/Docker-DocumentServer/blob/feature/damengdb-compose/run-document-server.sh#L423C1-L432C2</pre>
<pre>https://github.com/ONLYOFFICE/Docker-DocumentServer/blob/release/v8.1.0/tests/damengdb/damengdb.Dockerfile#L36-L45</pre>
</li>
</ol>
<p>After these changes have been added to the entry script, the document server is ready to initialize the connection to the database.</p>
@ -46,7 +46,7 @@
<h2>Running a stand</h2>
<p>To start the stand, execute the following commands:</p>
<ol>
<li><pre><code>git clone --single-branch --branch feature/damengdb-compose https://github.com/ONLYOFFICE/Docker-DocumentServer.git</code></pre></li>
<li><pre><code>git clone --single-branch --branch release/v8.1.0 https://github.com/ONLYOFFICE/Docker-DocumentServer.git</code></pre></li>
<li><pre><code>cd Docker-DocumentServer/tests/damengdb/</code></pre></li>
<li><pre><code>docker compose build</code></pre></li>
<li><pre><code>docker compose up -d</code></pre></li>