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

# エアギャップ／オフライン環境へのデプロイ

一般に、AyakaLeaf Pro をオフライン環境にデプロイすることは推奨しません。GitHub Sync や Zotero 連携など、多くの機能がインターネット接続を必要とするためです。

ただし、オフラインで作業したい場合、必要なものを取得するために ghcr.io レジストリへ常にアクセスできるとは限らない、ということになります `sharelatex` , `ayakaleaf-pro` および TeX Live イメージです。これは問題ではありません。Docker にはイメージのエクスポートとインポートのためのツールが用意されており、オフライン／エアギャップ環境へのデプロイに役立ちます。

大まかには、インターネット接続のある端末で必要なイメージをダウンロードし、それらをポータブルデバイスにエクスポートする（または SCP/Rsync を使って転送する）ことで、エアギャップされたサーバーにインポートします。

そのためには、次の手順を完了する必要があります:

* 必要なイメージをすべて取得します（ `overleaf-pro`, `git-bridge`, `mongo`, `redis` + 必要な [TeX Live イメージ](https://docs.overleaf.com/on-premises/configuration/overleaf-toolkit/server-pro-only-configuration/sandboxed-compiles#available-tex-live-images) で使用する [Sandboxed Compiles](https://docs.overleaf.com/on-premises/configuration/overleaf-toolkit/server-pro-only-configuration/sandboxed-compiles)）を、インターネット接続のあるマシン上で
  * `docker pull ghcr.io/ayaka-notes/overleaf-pro:6.1.2`
  * `docker pull quay.io/sharelatex/git-bridge:6.1.2` （タグは次と同じである必要があります `overleaf-pro`)
  * `docker pull mongo:6` （実際のバージョンに変更してください）
  * `docker pull redis:6.2` （実際のバージョンに変更してください）
  * `docker pull ghcr.io/ayaka-notes/texlive-full:2024.1` （実際のバージョンに変更してください）
* 取得した **各** イメージについて、.tar ファイルとしてエクスポートする必要があります。たとえば、 `docker save ghcr.io/ayaka-notes/overleaf-pro:6.1.2 > overleaf-pro:6.1.2.tar`
* お好みの方法で、 `.tar` ファイルをインターネット接続のあるマシンからオフライン／エアギャップされたサーバーへ転送します
* 各 .tar ファイルについて、 `docker load` コマンドを使用して、.tar ファイルからイメージを読み込みます。たとえば、 `docker load < overleaf-pro:6.1.2.tar`
* 最後に、 `docker images` コマンドを実行して、イメージの読み込みが成功したことと、それらが利用可能であることを確認します

{% hint style="danger" %}
デフォルトでは、 `bin/up` コマンドを実行すると、Toolkit は次を通じて設定された各 TeX Live イメージを自動的に取得しようとします: `ALL_TEX_LIVE_DOCKER_IMAGES` の `config/variables.env`。デプロイ環境はエアギャップされているため、これは失敗します。これを停止するには、次を使用します: `SIBLING_CONTAINERS_PULL=false` の `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/ja/insutru/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.
