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

# Distribuzioni air-gapped/offline

In generale, non consigliamo di distribuire AyakaLeaf Pro in un ambiente offline, poiché molte delle sue funzionalità, come GitHub Sync e l'integrazione con Zotero, richiedono una connessione Internet.

Ma se vuoi lavorare offline, il che significa che potrebbe non essere sempre possibile raggiungere il registro ghcr.io per scaricare i necessari `sharelatex` , `ayakaleaf-pro` e immagini TeX Live. Questo non è un problema, poiché Docker fornisce strumenti per esportare e importare le immagini che ti aiuteranno con una distribuzione offline/air-gapped.

A livello generale, scaricherai le immagini necessarie su un dispositivo con connettività Internet, le esporterai su un dispositivo portatile (o le trasferirai usando SCP/Rsync) e le importerai sul server air-gapped.

Per fare ciò, dovrai completare i seguenti passaggi:

* Scarica tutte le immagini richieste ( `overleaf-pro`, `git-bridge`, `mongo`, `redis` + eventuali [immagini TeX Live](https://docs.overleaf.com/on-premises/configuration/overleaf-toolkit/server-pro-only-configuration/sandboxed-compiles#available-tex-live-images) da utilizzare con [Compilazioni in sandbox](https://docs.overleaf.com/on-premises/configuration/overleaf-toolkit/server-pro-only-configuration/sandboxed-compiles)) su una macchina con connettività Internet
  * `docker pull ghcr.io/ayaka-notes/overleaf-pro:6.1.2`
  * `docker pull quay.io/sharelatex/git-bridge:6.1.2` (il tag deve essere lo stesso di `overleaf-pro`)
  * `docker pull mongo:6` (Aggiorna alla versione reale)
  * `docker pull redis:6.2` (Aggiorna alla versione reale)
  * `docker pull ghcr.io/ayaka-notes/texlive-full:2024.1` (Aggiorna alla versione reale)
* Per **ciascuna** delle immagini scaricate, dovrai poi esportarle in un file .tar. Ad esempio, `docker save ghcr.io/ayaka-notes/overleaf-pro:6.1.2 > overleaf-pro:6.1.2.tar`
* Usando il metodo che preferisci, trasferisci i `.tar` file dalla tua macchina connessa a Internet al server offline/air-gapped
* Per ciascuno dei file .tar, usa il `docker load` comando per caricare l'immagine dal file .tar. Ad esempio, `docker load < overleaf-pro:6.1.2.tar`
* Infine, esegui il `docker images` comando per visualizzare/confermare che il caricamento delle immagini è riuscito e che sono disponibili

{% hint style="danger" %}
Per impostazione predefinita, quando esegui il `bin/up` comando, il Toolkit tenterà di scaricare automaticamente ciascuna delle immagini TeX Live impostate tramite `ALL_TEX_LIVE_DOCKER_IMAGES` in `config/variables.env`. Poiché la tua distribuzione è air-gapped, questo fallirà -- puoi impedirlo usando `SIBLING_CONTAINERS_PULL=false` in `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/it/installazione/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.
