From fc0c87e07441f424d991c9fbf7c647993c81c8f9 Mon Sep 17 00:00:00 2001 From: Maged Elaasar Date: Sun, 7 Apr 2024 18:40:19 +0000 Subject: [PATCH] add docker for jdk17 --- .gitpod.Dockerfile | 5 +++++ .gitpod.yml | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 .gitpod.Dockerfile diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile new file mode 100644 index 0000000..b5aafe3 --- /dev/null +++ b/.gitpod.Dockerfile @@ -0,0 +1,5 @@ +FROM gitpod/workspace-full:2024-04-03-08-50-41 + +SHELL ["/bin/bash", "-c"] +RUN source "/home/gitpod/.sdkman/bin/sdkman-init.sh" \ + && sdk install java 17.0.4.1-tem < /dev/null \ No newline at end of file diff --git a/.gitpod.yml b/.gitpod.yml index bb635d8..03cdfb5 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -4,6 +4,9 @@ # Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart +image: + file: .gitpod.Dockerfile + tasks: - init: sdk install java 17 - init: ./gradlew build