1
0
mirror of synced 2025-12-23 21:03:15 -05:00

automatically figure out ARM-related variables (#11450)

* automatically figure out ARM-related variables

* clean up

* explicitly use amd64-prefixed versions of alpine and postgres
This commit is contained in:
Jared Rhizor
2022-03-31 13:58:46 -07:00
committed by GitHub
parent 03ed894917
commit 526c5a0c64
6 changed files with 18 additions and 119 deletions

View File

@@ -51,15 +51,7 @@ You can build the destination by running:
./gradlew :airbyte-integrations:connectors:destination-<name>:build
```
On Mac M1\(Apple Silicon\) machines\(until openjdk images natively support ARM64 images\) set the platform variable as shown below and build
```bash
export DOCKER_BUILD_PLATFORM=linux/amd64
# Must be run from the Airbyte project root
./gradlew :airbyte-integrations:connectors:destination-<name>:build
```
this compiles the java code for your destination and builds a Docker image with the connector. At this point, we haven't implemented anything of value yet, but once we do, you'll use this command to compile your code and Docker image.
This compiles the Java code for your destination and builds a Docker image with the connector. At this point, we haven't implemented anything of value yet, but once we do, you'll use this command to compile your code and Docker image.
{% hint style="info" %}
Airbyte uses Gradle to manage Java dependencies. To add dependencies for your connector, manage them in the `build.gradle` file inside your connector's directory.