> For the complete documentation index, see [llms.txt](https://ayakaleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ayakaleaf-pro.ayaka.space/on-premises/cs/instalace/air-gapped-offline-deployments.md).

# Nasazení v izolované/offline síti

Obecně nedoporučujeme nasazovat AyakaLeaf Pro v offline prostředí, protože mnoho jeho funkcí, jako je GitHub Sync a integrace se Zotero, vyžaduje připojení k internetu.

Ale pokud chcete pracovat offline, což znamená, že nemusí být vždy možné dosáhnout na `ghcr.io` registru pro stažení požadovaných `ayakaleaf-pro` a obrazů TeX Live. To není problém, protože Docker poskytuje nástroje pro export a import obrazů, které vám pomohou s offline/air-gapped nasazením.

Ve stručnosti stáhnete požadované obrazy na zařízení s připojením k internetu, exportujete je na přenosné zařízení (nebo je přenesete pomocí SCP/Rsync) a importujete je na server bez přístupu k síti.

K tomu budete muset dokončit následující kroky:

* Stáhněte všechny požadované obrazy ( `overleaf-pro`, `git-bridge`, `mongo`, `redis` + jakékoli požadované [obrazy TeX Live](https://docs.overleaf.com/on-premises/configuration/overleaf-toolkit/server-pro-only-configuration/sandboxed-compiles#available-tex-live-images) pro použití s [Sandboxed Compiles](https://docs.overleaf.com/on-premises/configuration/overleaf-toolkit/server-pro-only-configuration/sandboxed-compiles)) na stroji s připojením k internetu
  * `docker pull ghcr.io/ayaka-notes/overleaf-pro:6.1.2`
  * `docker pull quay.io/sharelatex/git-bridge:6.1.2` (tag musí být stejný jako `overleaf-pro`)
  * `docker pull mongo:6` (Prosím změňte na skutečnou verzi)
  * `docker pull redis:6.2` (Prosím změňte na skutečnou verzi)
  * `docker pull ghcr.io/ayaka-notes/texlive-full:2024.1` (Prosím změňte na skutečnou verzi)
* Pro **každý** ze stažených obrazů pak budete muset je exportovat do souboru .tar. Například, `docker save ghcr.io/ayaka-notes/overleaf-pro:6.1.2 > overleaf-pro:6.1.2.tar`
* Pomocí vámi preferované metody přeneste `.tar` soubory z počítače připojeného k internetu na offline/air-gapped server
* Pro každý ze souborů .tar použijte `docker load` příkaz k načtení obrazu ze souboru .tar. Například, `docker load < overleaf-pro:6.1.2.tar`
* Nakonec spusťte `docker images` příkaz, abyste zobrazili/potvrdili, že načtení obrazů proběhlo úspěšně a že jsou k dispozici

{% hint style="danger" %}
Ve výchozím nastavení, když spustíte `bin/up` příkaz, Toolkit se pokusí automaticky stáhnout každý z obrazů TeX Live nastavených přes `ALL_TEX_LIVE_DOCKER_IMAGES` v `config/variables.env`. Jelikož je vaše nasazení bez přístupu k síti, selže to -- můžete tomu zabránit použitím `SIBLING_CONTAINERS_PULL=false` v `config/overleaf.rc`.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ayakaleaf-pro.ayaka.space/on-premises/cs/instalace/air-gapped-offline-deployments.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
