> For the complete documentation index, see [llms.txt](https://overleaf-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://overleaf-pro.ayaka.space/on-premises/sv/installation/air-gapped-offline-deployments.md).

# Air-gappade/offline-driftsättningar

Overleaf Community Edition och Overleaf Pro har båda utformats för att fungera offline, vilket betyder att det inte alltid är möjligt att nå ghcr.io-registret för att hämta de nödvändiga `sharelatex` , `overleaf-pro` och TeX Live-bilderna. Detta är inget problem eftersom Docker tillhandahåller verktyg för att exportera och importera bilder som hjälper dig med en offline-/air-gappad driftsättning.

På hög nivå laddar du ned de nödvändiga bilderna på en enhet med internetanslutning, exporterar dem till en bärbar enhet (eller överför dem med SCP/Rsync) och importerar dem på den air-gappade servern.

För att göra detta behöver du slutföra följande steg:

* Hämta alla nödvändiga bilder ( `overleaf-pro`, `git-bridge`, `mongo`, `redis` + eventuella nödvändiga [TeX Live-bilder](https://docs.overleaf.com/on-premises/configuration/overleaf-toolkit/server-pro-only-configuration/sandboxed-compiles#available-tex-live-images) för användning med [Kompileringar i sandlåda](https://docs.overleaf.com/on-premises/configuration/overleaf-toolkit/server-pro-only-configuration/sandboxed-compiles)) på en dator med internetanslutning
  * `docker pull ghcr.io/ayaka-notes/overleaf-pro:6.1.2`
  * `docker pull quay.io/sharelatex/git-bridge:6.1.2` (taggen måste vara densamma som `overleaf-pro`)
  * `docker pull mongo:6` (Ändra till den faktiska versionen)
  * `docker pull redis:6.2` (Ändra till den faktiska versionen)
  * `docker pull ghcr.io/ayaka-notes/texlive-full:2024.1` (Ändra till den faktiska versionen)
* För **varje** av de hämtade bilderna behöver du sedan exportera dem till en .tar-fil. Till exempel, `docker save ghcr.io/ayaka-notes/overleaf-pro:6.1.2 > overleaf-pro:6.1.2.tar`
* Överför med den metod du föredrar `.tar` filerna från din internetanslutna dator till den offline-/air-gappade servern
* För varje .tar-fil, använd `docker load` kommandot för att läsa in bilden från .tar-filen. Till exempel, `docker load < overleaf-pro:6.1.2.tar`
* Kör slutligen `docker images` kommandot för att visa/bekräfta att inläsningen av bilder lyckades och att de är tillgängliga

{% hint style="danger" %}
Som standard, när du kör `bin/up` kommandot kommer Toolkit att försöka hämta varje TeX Live-bild som anges via `ALL_TEX_LIVE_DOCKER_IMAGES` i `config/variables.env`. Eftersom din distribution är air-gappad kommer detta att misslyckas -- du kan stoppa detta genom att använda `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://overleaf-pro.ayaka.space/on-premises/sv/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.
