Skip to content

Commit

Permalink
Add Docker image chip-build-java to build kotlin app (#25320)
Browse files Browse the repository at this point in the history
* Add Docker image chip-build-java to build kotlin app

* Update integrations/docker/images/chip-build/version

Co-authored-by: Boris Zbarsky <[email protected]>

* Add kotlin support to chip-build-vscode

---------

Co-authored-by: Boris Zbarsky <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Oct 6, 2023
1 parent 252e476 commit 4780947
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 1 deletion.
13 changes: 13 additions & 0 deletions integrations/docker/images/chip-build-java/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
ARG VERSION=latest
FROM connectedhomeip/chip-build:${VERSION}

# Download and install kotlin compiler
RUN set -x \
&& cd /usr/lib \
&& wget -q https://github.com/JetBrains/kotlin/releases/download/v1.3.31/kotlin-compiler-1.3.31.zip \
&& unzip kotlin-compiler-*.zip \
&& rm kotlin-compiler-*.zip \
&& rm -f kotlinc/bin/*.bat \
&& : # last line

ENV PATH $PATH:/usr/lib/kotlinc/bin
1 change: 1 addition & 0 deletions integrations/docker/images/chip-build-java/build.sh
1 change: 1 addition & 0 deletions integrations/docker/images/chip-build-java/run.sh
1 change: 1 addition & 0 deletions integrations/docker/images/chip-build-java/version
11 changes: 11 additions & 0 deletions integrations/docker/images/chip-build-vscode/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,17 @@ RUN set -x \
&& chmod -R a+w /opt/android/sdk/licenses \
&& : # last line

# Download and install kotlin compiler
RUN set -x \
&& cd /usr/lib \
&& wget -q https://github.com/JetBrains/kotlin/releases/download/v1.3.31/kotlin-compiler-1.3.31.zip \
&& unzip kotlin-compiler-*.zip \
&& rm kotlin-compiler-*.zip \
&& rm -f kotlinc/bin/*.bat \
&& : # last line

ENV PATH $PATH:/usr/lib/kotlinc/bin

# Required for the Tizen SDK
RUN set -x \
&& apt-get update \
Expand Down
2 changes: 1 addition & 1 deletion integrations/docker/images/chip-build/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.6.41 Version bump reason: [K32W0] SDK 2.6.10 update
0.6.42 Version bump reason: [Java] download and install kotlin compiler

0 comments on commit 4780947

Please sign in to comment.