1
0
mirror of synced 2025-12-25 02:09:19 -05:00

🎉 Added optional platform flag for build image script (#6000)

This commit is contained in:
Harsha Teja Kanna
2021-09-15 01:37:07 -05:00
committed by GitHub
parent 2390b5492d
commit 84b3fbd8db
2 changed files with 12 additions and 1 deletions

View File

@@ -51,6 +51,13 @@ 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.
{% hint style="info" %}