Skip to content

Commit c2eabc1

Browse files
authored
m1 pr cleanups (#7197)
1 parent afde653 commit c2eabc1

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

docs/contributing-to-airbyte/developing-locally.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ To compile and build just the platform \(not all the connectors\):
3333
SUB_BUILD=PLATFORM ./gradlew build
3434
```
3535

36-
On Mac M1\(Apple Silicon\) machines\
36+
{% hint style="info" %}
37+
If you're using Mac M1 \(Apple Silicon\) machines, it is possible to compile Airbyte by setting
38+
some additional environment variables:
39+
3740
```bash
3841
export DOCKER_BUILD_PLATFORM=linux/arm64
3942
export DOCKER_BUILD_ARCH=arm64
@@ -42,6 +45,10 @@ export NODE_VERSION=16.11.1
4245
SUB_BUILD=PLATFORM ./gradlew build
4346
```
4447

48+
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.
49+
50+
{% endhint %}
51+
4552
This will build all the code and run all the unit tests.
4653

4754
`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.

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# NOTE: if you want to override this for your local machine, set overrides in ~/.gradle/gradle.properties
33

44
org.gradle.parallel=true
5+
6+
# add-exports are needed for spotless to work on Java 17
57
org.gradle.jvmargs=-Xmx4g -Xss4m --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
68
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \
79
--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \

0 commit comments

Comments
 (0)