Skip to content
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

Merged
merged 1 commit into from
Aug 8, 2024
Merged

sdkman in container #1301

merged 1 commit into from
Aug 8, 2024

Conversation

prabhu
Copy link
Collaborator

@prabhu prabhu commented Aug 8, 2024

-t java11 etc are supported in container invocations.

Signed-off-by: Prabhu Subramanian <[email protected]>
@prabhu prabhu merged commit 1a6d289 into master Aug 8, 2024
20 of 25 checks passed
@prabhu prabhu deleted the fix/sdkman-container branch August 8, 2024 02:36
@@ -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 \
Copy link
Collaborator Author

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}" \
Copy link
Collaborator Author

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 \
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant