Skip to content

Commit

Permalink
m1 pr cleanups (#7197)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhizor committed Oct 19, 2021
1 parent afde653 commit c2eabc1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/contributing-to-airbyte/developing-locally.md
Expand Up @@ -33,7 +33,10 @@ To compile and build just the platform \(not all the connectors\):
SUB_BUILD=PLATFORM ./gradlew build
```

On Mac M1\(Apple Silicon\) machines\
{% hint style="info" %}
If you're using Mac M1 \(Apple Silicon\) machines, it is possible to compile Airbyte by setting
some additional environment variables:

```bash
export DOCKER_BUILD_PLATFORM=linux/arm64
export DOCKER_BUILD_ARCH=arm64
Expand All @@ -42,6 +45,10 @@ export NODE_VERSION=16.11.1
SUB_BUILD=PLATFORM ./gradlew build
```

There are some known issues (unit tests failing and Temporal failing during runs). See the [GitHub issue](https://github.com/airbytehq/airbyte/issues/2017) for more information.

{% endhint %}

This will build all the code and run all the unit tests.

`SUB_BUILD=PLATFORM ./gradlew build` creates all the necessary artifacts \(Webapp, Jars and Docker images\) so that you can run Airbyte locally. Since this builds everything, it can take some time.
Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Expand Up @@ -2,6 +2,8 @@
# NOTE: if you want to override this for your local machine, set overrides in ~/.gradle/gradle.properties

org.gradle.parallel=true

# add-exports are needed for spotless to work on Java 17
org.gradle.jvmargs=-Xmx4g -Xss4m --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \
Expand Down

0 comments on commit c2eabc1

Please sign in to comment.