-
-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sdkman in container #1301
sdkman in container #1301
Conversation
Signed-off-by: Prabhu Subramanian <[email protected]>
@@ -98,9 +100,6 @@ RUN set -e; \ | |||
&& sdk install maven $MAVEN_VERSION \ | |||
&& sdk install gradle $GRADLE_VERSION \ | |||
&& sdk install sbt $SBT_VERSION \ | |||
&& sdk offline enable \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are breaking changes that also alter the threat model, since we are essentially unlocking and making the sdk command available for cdxgen and other tools.
MAVEN_HOME="/opt/maven/${MAVEN_VERSION}" \ | ||
GRADLE_HOME="/opt/gradle/${GRADLE_VERSION}" \ | ||
SBT_HOME="/opt/sbt/${SBT_VERSION}" \ | ||
JAVA_HOME="/root/.sdkman/candidates/java/${JAVA_VERSION}" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possibly breaking change.
@@ -72,9 +74,6 @@ RUN set -e; \ | |||
&& sdk install maven $MAVEN_VERSION \ | |||
&& sdk install gradle $GRADLE_VERSION \ | |||
&& sdk install sbt $SBT_VERSION \ | |||
&& sdk offline enable \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think sdkman supports ppc64 that well, so the new java with version types feature are unlikely to work well in this architecture.
export GRADLE_VERSION=8.8 | ||
export MAVEN_HOME="/opt/maven/${MAVEN_VERSION}" | ||
export GRADLE_HOME="/opt/gradle/${GRADLE_VERSION}" | ||
export SBT_HOME="/opt/sbt/${SBT_VERSION}" | ||
export SDKMAN_DIR=/.sdkman |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These needs to be tested.
-t java11 etc are supported in container invocations.