<@U04S8PLJWMT> looks like airbyte is not made for ...
# ask-ai
j
@kapa.ai looks like airbyte is not made for airgapped setups. can I use pyarbyte instead? which are the things I have to do in order to run it in an airgapped environment?
k
You are correct that Airbyte's main platform is not designed for airgapped (offline) environments out of the box. Running Airbyte in an airgapped setup requires significant extra work, such as modifying abctl or Helm chart deployments to operate without internet access. There is no simple, officially supported offline deployment solution currently available, though some users have attempted workarounds with limited success. Even with these, issues like fetching connector registries and compatibility files from the internet can cause failures during upgrades or operation in airgapped environments [[GitHub Discussion: Offline deployment](https://github.com/airbytehq/airbyte/discussions/45606)] [[GitHub Issue: Air gap upgrade error](https://github.com/airbytehq/airbyte/issues/44441)]. PyAirbyte is suggested as an alternative, especially for use cases like Jupyter Notebooks, prototyping, or when you don't need to run a full Airbyte server [[PyAirbyte Getting Started](https://docs.airbyte.com/platform/using-airbyte/pyairbyte/getting-started)]. However, running PyAirbyte in an airgapped environment also comes with challenges: ### What you need to do to run PyAirbyte in an airgapped environment 1. Install the PyAirbyte package and dependencies offline: - Download the
airbyte
Python package and all its dependencies from a machine with internet access. - Transfer the packages to your airgapped environment and install them using
pip install <package.whl>
. 2. Connector Images: - PyAirbyte uses Airbyte connectors, which are distributed as Docker images. You will need to: - Download the required connector images (e.g.,
source-faker
,
destination-snowflake
, etc.) from Docker Hub or the Airbyte registry on a machine with internet access. - Save these images using
docker save
. - Transfer the images to your airgapped environment and load them using
docker load
. 3. Connector Metadata: - PyAirbyte may need access to connector metadata (such as specifications and schemas). If this is fetched from the internet at runtime, you may need to pre-download any required files and ensure PyAirbyte can access them locally. The documentation does not specify if this is required, so you may need to test this step. 4. No Internet-Dependent Features: - Be aware that any features in PyAirbyte that require live access to the Airbyte connector registry or other online resources will not work unless you have pre-cached or redirected those resources locally. ### Example PyAirbyte Usage Once dependencies and images are in place, you can use PyAirbyte as shown:
Copy code
python import airbyte as ab  source = ab.get_source(     "source-faker",     config={"count": 5_000},     install_if_missing=True,  # This will fail if the image is not available locally ) source.check() source.select_all_streams() result = source.read()  for name, records in result.streams.items():     print(f"Stream {name}: {len(list(records))} records")
[[PyAirbyte Usage](https://docs.airbyte.com/platform/using-airbyte/pyairbyte/getting-started)] --- Summary: - Airbyte OSS is not designed for airgapped use, and running it offline is complex and not officially supported. - PyAirbyte is a lighter-weight alternative, but you must manually manage all dependencies and Docker images for offline use. - There is no official, fully-documented process for running PyAirbyte completely offline, so some trial and error may be required. If you have a specific set of connectors you need, prepare all their images and dependencies in advance. If you encounter issues, you may need to inspect PyAirbyte's source or logs to identify any additional resources it tries to fetch online.