|
@@ -101,7 +101,7 @@ export default function Documentation() {
|
|
<div>
|
|
<div>
|
|
<h3 className="text-lg font-semibold mb-4">Initial Setup</h3>
|
|
<h3 className="text-lg font-semibold mb-4">Initial Setup</h3>
|
|
<div className="bg-gray-50 p-4 rounded-lg">
|
|
<div className="bg-gray-50 p-4 rounded-lg">
|
|
- <h4 className="font-semibold text-blue-600 mb-2">./startup.sh</h4>
|
|
|
|
|
|
+ <h4 className="font-semibold text-blue-600 mb-2">./setup.sh</h4>
|
|
<p className="text-gray-700 mb-3">Performs initial deployment and configuration of the apt-mirror container.</p>
|
|
<p className="text-gray-700 mb-3">Performs initial deployment and configuration of the apt-mirror container.</p>
|
|
<div className="bg-white p-3 rounded border-l-4 border-green-500">
|
|
<div className="bg-white p-3 rounded border-l-4 border-green-500">
|
|
<h5 className="font-semibold mb-2">Operations:</h5>
|
|
<h5 className="font-semibold mb-2">Operations:</h5>
|
|
@@ -111,11 +111,10 @@ export default function Documentation() {
|
|
<li>Prompts for custom configuration (domain, sync frequency, admin password)</li>
|
|
<li>Prompts for custom configuration (domain, sync frequency, admin password)</li>
|
|
<li>Generates nginx htpasswd file for authentication</li>
|
|
<li>Generates nginx htpasswd file for authentication</li>
|
|
<li>Cleans up previous installations</li>
|
|
<li>Cleans up previous installations</li>
|
|
- <li>Loads appropriate Docker image</li>
|
|
|
|
<li>Creates data directories structure</li>
|
|
<li>Creates data directories structure</li>
|
|
<li>Generates apt-mirror configuration</li>
|
|
<li>Generates apt-mirror configuration</li>
|
|
<li>Creates docker-compose.yml from template</li>
|
|
<li>Creates docker-compose.yml from template</li>
|
|
- <li>Starts the container</li>
|
|
|
|
|
|
+ <li>Calls start.sh to load image and start container</li>
|
|
</ul>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -124,11 +123,24 @@ export default function Documentation() {
|
|
<div>
|
|
<div>
|
|
<h3 className="text-lg font-semibold mb-4">Starting and Restarting</h3>
|
|
<h3 className="text-lg font-semibold mb-4">Starting and Restarting</h3>
|
|
<div className="bg-gray-50 p-4 rounded-lg">
|
|
<div className="bg-gray-50 p-4 rounded-lg">
|
|
- <h4 className="font-semibold text-blue-600 mb-2">After Initial Setup</h4>
|
|
|
|
|
|
+ <h4 className="font-semibold text-blue-600 mb-2">./start.sh</h4>
|
|
|
|
+ <p className="text-gray-700 mb-3">Loads Docker image and starts the container. Used by setup.sh and for manual restarts.</p>
|
|
|
|
+ <div className="bg-white p-3 rounded border-l-4 border-blue-500">
|
|
|
|
+ <h5 className="font-semibold mb-2">Operations:</h5>
|
|
|
|
+ <ul className="list-disc list-inside space-y-1 text-sm">
|
|
|
|
+ <li>Detects system architecture (amd64/arm64)</li>
|
|
|
|
+ <li>Validates required image files exist in dist/</li>
|
|
|
|
+ <li>Loads appropriate Docker image</li>
|
|
|
|
+ <li>Starts the container using docker-compose</li>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <h4 className="font-semibold text-blue-600 mb-2 mt-4">After Initial Setup</h4>
|
|
<p className="text-gray-700 mb-3">Commands for managing the running container.</p>
|
|
<p className="text-gray-700 mb-3">Commands for managing the running container.</p>
|
|
<div className="bg-white p-3 rounded border-l-4 border-orange-500">
|
|
<div className="bg-white p-3 rounded border-l-4 border-orange-500">
|
|
<h5 className="font-semibold mb-2">Operations:</h5>
|
|
<h5 className="font-semibold mb-2">Operations:</h5>
|
|
<ul className="list-disc list-inside space-y-1 text-sm">
|
|
<ul className="list-disc list-inside space-y-1 text-sm">
|
|
|
|
+ <li><code className="bg-gray-100 px-1 rounded">./start.sh</code> - Load image and start container</li>
|
|
<li><code className="bg-gray-100 px-1 rounded">docker compose up -d</code> - Start container</li>
|
|
<li><code className="bg-gray-100 px-1 rounded">docker compose up -d</code> - Start container</li>
|
|
<li><code className="bg-gray-100 px-1 rounded">docker compose down</code> - Stop container</li>
|
|
<li><code className="bg-gray-100 px-1 rounded">docker compose down</code> - Stop container</li>
|
|
<li><code className="bg-gray-100 px-1 rounded">docker compose restart</code> - Restart container</li>
|
|
<li><code className="bg-gray-100 px-1 rounded">docker compose restart</code> - Restart container</li>
|