> 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/da/installation/air-gapped-offline-deployments.md).

# Air-gapped/offline-implementeringer

Generelt anbefaler vi ikke at implementere AyakaLeaf Pro i et offline-miljø, da mange af funktionerne, såsom GitHub Sync og Zotero-integration, kræver en internetforbindelse.

Men hvis du vil arbejde offline, hvilket betyder, at det muligvis ikke altid er muligt at få adgang til ghcr.io-registreret for at hente de nødvendige `sharelatex` , `ayakaleaf-pro` og TeX Live-images. Dette er ikke et problem, da Docker tilbyder værktøjer til eksport og import af images, som vil hjælpe dig med en offline-/air-gapped-udrulning.

På et overordnet niveau downloader du de nødvendige images på en enhed med internetadgang, eksporterer dem til en bærbar enhed (eller overfører dem via SCP/Rsync) og importerer dem på den air-gapped server.

For at gøre dette skal du gennemføre følgende trin:

* Hent alle de nødvendige images ( `overleaf-pro`, `git-bridge`, `mongo`, `redis` + eventuelle nødvendige [TeX Live-images](https://docs.overleaf.com/on-premises/configuration/overleaf-toolkit/server-pro-only-configuration/sandboxed-compiles#available-tex-live-images) til brug med [Sandboxed Compiles](https://docs.overleaf.com/on-premises/configuration/overleaf-toolkit/server-pro-only-configuration/sandboxed-compiles)) på en maskine med internetadgang
  * `docker pull ghcr.io/ayaka-notes/overleaf-pro:6.1.2`
  * `docker pull quay.io/sharelatex/git-bridge:6.1.2` (taggen skal være den samme som `overleaf-pro`)
  * `docker pull mongo:6` (Ret venligst til den rigtige version)
  * `docker pull redis:6.2` (Ret venligst til den rigtige version)
  * `docker pull ghcr.io/ayaka-notes/texlive-full:2024.1` (Ret venligst til den rigtige version)
* For **hver** af de hentede images skal du derefter eksportere dem til en .tar-fil. For eksempel, `docker save ghcr.io/ayaka-notes/overleaf-pro:6.1.2 > overleaf-pro:6.1.2.tar`
* Med din foretrukne metode overfører du `.tar` filerne fra din internetforbundne maskine til den offline/air-gapped server
* For hver af .tar-filerne skal du bruge `docker load` kommandoen til at indlæse imaget fra .tar-filen. For eksempel, `docker load < overleaf-pro:6.1.2.tar`
* Til sidst skal du køre `docker images` kommandoen for at se/bekræfte, at indlæsningen af images lykkedes, og at de er tilgængelige

{% hint style="danger" %}
Som standard, når du kører `bin/up` kommandoen, vil Toolkit forsøge automatisk at hente hvert af TeX Live-images, der er angivet via `ALL_TEX_LIVE_DOCKER_IMAGES` i `config/variables.env`. Da din implementering er air-gapped, vil dette fejle -- du kan forhindre dette ved at bruge `SIBLING_CONTAINERS_PULL=false` i `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/da/installation/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.
