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

# Deployment air-gapped/offline

Overleaf Community Edition dan Overleaf Pro sama-sama dirancang untuk bekerja secara offline, yang berarti bahwa tidak selalu memungkinkan untuk mengakses registri ghcr.io untuk menarik yang diperlukan `sharelatex` , `overleaf-pro` dan citra TeX Live. Ini bukan masalah karena Docker menyediakan alat untuk mengekspor dan mengimpor citra yang akan membantu Anda dengan penerapan offline/air-gapped.

Secara garis besar, Anda akan mengunduh citra yang diperlukan pada perangkat dengan konektivitas internet, mengekspornya ke perangkat portabel (atau mentransfernya menggunakan SCP/Rsync), dan mengimpornya ke server air-gapped.

Untuk melakukan ini, Anda perlu menyelesaikan langkah-langkah berikut:

* Tarik semua citra yang diperlukan ( `overleaf-pro`, `git-bridge`, `mongo`, `redis` + citra TeX Live yang diperlukan [citra TeX Live](https://docs.overleaf.com/on-premises/configuration/overleaf-toolkit/server-pro-only-configuration/sandboxed-compiles#available-tex-live-images) untuk digunakan dengan [Kompilasi dalam Sandbox](https://docs.overleaf.com/on-premises/configuration/overleaf-toolkit/server-pro-only-configuration/sandboxed-compiles)) pada mesin dengan konektivitas internet
  * `docker pull ghcr.io/ayaka-notes/overleaf-pro:6.1.2`
  * `docker pull quay.io/sharelatex/git-bridge:6.1.2` (tag harus sama dengan `overleaf-pro`)
  * `docker pull mongo:6` (Harap ubah ke versi sebenarnya)
  * `docker pull redis:6.2` (Harap ubah ke versi sebenarnya)
  * `docker pull ghcr.io/ayaka-notes/texlive-full:2024.1` (Harap ubah ke versi sebenarnya)
* Untuk **masing-masing** dari citra yang telah ditarik, Anda kemudian perlu mengekspornya ke file .tar. Contohnya, `docker save ghcr.io/ayaka-notes/overleaf-pro:6.1.2 > overleaf-pro:6.1.2.tar`
* Dengan metode pilihan Anda, transfer `.tar` file dari mesin yang terhubung ke internet ke server offline/air-gapped
* Untuk setiap file .tar, gunakan `docker load` perintah untuk memuat citra dari file .tar. Contohnya, `docker load < overleaf-pro:6.1.2.tar`
* Terakhir, jalankan `docker images` perintah untuk melihat/memastikan bahwa pemuatan citra berhasil dan bahwa citra tersebut tersedia

{% hint style="danger" %}
Secara default, saat Anda menjalankan `bin/up` perintah tersebut, Toolkit akan mencoba secara otomatis menarik masing-masing citra TeX Live yang diatur melalui `ALL_TEX_LIVE_DOCKER_IMAGES` di `config/variables.env`. Karena penerapan Anda air-gapped, ini akan gagal -- Anda dapat menghentikannya dengan menggunakan `SIBLING_CONTAINERS_PULL=false` di `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/id/instalasi/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.
