-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy path__init__.py
More file actions
41 lines (24 loc) · 1.22 KB
/
__init__.py
File metadata and controls
41 lines (24 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
"""Airbyte CDK Build Command.
The `airbyte-cdk-build` command provides a simplified way to build connector Docker images without requiring the full Airbyte CI pipeline.
```bash
pip install airbyte-cdk
pipx run airbyte-cdk-build [arguments]
```
```bash
airbyte-cdk-build /path/to/connector
airbyte-cdk image build /path/to/connector
airbyte-cdk image build /path/to/connector --tag custom_tag
airbyte-cdk image build /path/to/connector --no-verify
airbyte-cdk image build /path/to/connector --verbose
```
- `connector_dir`: Path to the connector directory (required)
- `--tag`: Tag to apply to the built image (default: "dev")
- `--no-verify`: Skip verification of the built image
- `--verbose`, `-v`: Enable verbose logging
The command reads the connector's metadata from the `metadata.yaml` file, builds a Docker image using the connector's Dockerfile, and verifies the image by running the `spec` command. The image is tagged according to the repository name specified in the metadata and the provided tag.
This command is designed to be a simpler alternative to the `airbyte-ci build` command, using Docker directly on the host machine instead of Dagger.
"""
from airbyte_cdk.cli.build._run import run
__all__ = [
"run",
]