Skip to content

Commit fef79c4

Browse files
authored
Update Gitpod Dockerfile to use Java JDK 21 by default (#10311)
1 parent b97764d commit fef79c4

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.gitpod/Dockerfile

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
FROM gitpod/workspace-full
2-
1+
FROM gitpod/workspace-full:latest
2+
ARG JAVA_VERSION=21.0.6-tem
33
ARG MAVEN_VERSION=3.9.9
4-
5-
RUN brew install gh && \
6-
bash -c ". /home/gitpod/.sdkman/bin/sdkman-init.sh && sdk install maven ${MAVEN_VERSION} && sdk default maven ${MAVEN_VERSION}"
4+
# Install Java 21, Maven and GitHub CLI
5+
RUN bash -c ". /home/gitpod/.sdkman/bin/sdkman-init.sh && \
6+
sdk install java ${JAVA_VERSION} && \
7+
sdk default java ${JAVA_VERSION} && \
8+
sdk install maven ${MAVEN_VERSION} && \
9+
sdk default maven ${MAVEN_VERSION} && \
10+
brew install gh"

0 commit comments

Comments
 (0)