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

# Distribuzioni air-gapped/offline

Sia Overleaf Community Edition che Overleaf Pro sono stati progettati per funzionare offline, il che significa che non sempre potrebbe essere possibile raggiungere il registry ghcr.io per scaricare i necessari `sharelatex` , `overleaf-pro` e le immagini di TeX Live. Questo non è un problema, poiché Docker fornisce strumenti per esportare e importare le immagini che ti aiuteranno in una distribuzione offline/air-gapped.

In linea generale, scaricherai le immagini richieste su un dispositivo con connettività Internet, le esporterai su un dispositivo portatile (oppure le trasferirai usando SCP/Rsync) e le importerai sul server air-gapped.

Per farlo, dovrai completare i seguenti passaggi:

* Scarica tutte le immagini richieste ( `overleaf-pro`, `git-bridge`, `mongo`, `redis` + eventuali richieste [immagini di TeX Live](https://docs.overleaf.com/on-premises/configuration/overleaf-toolkit/server-pro-only-configuration/sandboxed-compiles#available-tex-live-images) da usare 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` (Sostituisci con la versione reale)
  * `docker pull redis:6.2` (Sostituisci con la versione reale)
  * `docker pull ghcr.io/ayaka-notes/texlive-full:2024.1` (Sostituisci con la versione reale)
* Per **ciascuna** delle immagini scaricate, dovrai quindi esportarle in un file .tar. Ad esempio, `docker save ghcr.io/ayaka-notes/overleaf-pro:6.1.2 > overleaf-pro:6.1.2.tar`
* Utilizzando 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 sia andato a buon fine e che siano disponibili

{% hint style="danger" %}
Per impostazione predefinita, quando esegui il `bin/up` comando, il Toolkit tenterà di scaricare automaticamente ciascuna delle immagini di 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://overleaf-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.
