Skip to content

Commit

Permalink
Merge pull request #23 from appwrite/feat-java-17
Browse files Browse the repository at this point in the history
Feat-java-17
  • Loading branch information
TorstenDittmann authored Oct 6, 2021
2 parents 5dea30d + 9348e41 commit b4ca978
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runtimes/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,8 @@ docker buildx build --platform linux/amd64 -t appwrite/runtime-for-java:11.0 ./r
echo 'Java 16...'
docker buildx build --platform linux/amd64 -t appwrite/runtime-for-java:16.0 ./runtimes/java-16.0/ --push

echo 'Java 17...'
docker buildx build --platform linux/amd64 -t appwrite/runtime-for-java:17.0 ./runtimes/java-17.0/ --push

echo 'Swift 5.5...'
docker buildx build --platform linux/amd64 -t appwrite/runtime-for-swift:5.5 ./runtimes/swift-5.5/ --push
7 changes: 7 additions & 0 deletions runtimes/java-17.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM openjdk:17-jdk-alpine

LABEL maintainer="[email protected]"

RUN apk add tar

WORKDIR /usr/local/src/
1 change: 1 addition & 0 deletions src/Runtimes/Runtimes.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public function __construct()
$java = new Runtime('java', 'Java');
$java->addVersion('11.0', 'openjdk/11-jre', 'appwrite/runtime-for-java:11.0', [System::X86]);
$java->addVersion('16.0', 'openjdk/16-jdk-alpine', 'appwrite/runtime-for-java:16.0', [System::X86]);
$java->addVersion('17.0', 'openjdk/17-jdk-alpine', 'appwrite/runtime-for-java:17.0', [System::X86]);
$this->runtimes['java'] = $java;

$swift = new Runtime('swift', 'Swift');
Expand Down

0 comments on commit b4ca978

Please sign in to comment.