-
Notifications
You must be signed in to change notification settings - Fork 124
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
BUGFIX: MSF-25904 Using C9S and java 8 for LCM Bricks #1951
Closed
hung-nguyen-hoang
wants to merge
1
commit into
gooddata:master
from
hung-nguyen-hoang:MSF-25904-C9S-Java8
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
FROM 020413372491.dkr.ecr.us-east-1.amazonaws.com/tools/gdc-java-11-jre-centos9:202310031054.5119496 | ||
FROM 020413372491.dkr.ecr.us-east-1.amazonaws.com/tools/gdc-java-8-jdk-centos9:202311071405.4d8c665 | ||
|
||
ARG RVM_VERSION=stable | ||
ARG JRUBY_VERSION=9.4.1.0 | ||
|
||
LABEL image_name="GDC LCM Bricks" | ||
LABEL maintainer="LCM <[email protected]>" | ||
LABEL git_repository_url="https://github.com/gooddata/gooddata-ruby/" | ||
LABEL parent_image="020413372491.dkr.ecr.us-east-1.amazonaws.com/tools/gdc-java-11-jre-centos9:202310031054.5119496" | ||
LABEL parent_image="020413372491.dkr.ecr.us-east-1.amazonaws.com/tools/gdc-java-8-jdk-centos9:202311071405.4d8c665" | ||
|
||
# which is required by RVM | ||
RUN yum install -y which patch make git maven procps \ | ||
|
@@ -33,6 +33,13 @@ RUN rvm install jruby-${JRUBY_VERSION} && gem update --system \ | |
&& gem install bundler -v 2.4.6 \ | ||
&& gem install rake -v 13.0.6 | ||
|
||
RUN alternatives --install /usr/bin/java java /usr/lib/jvm/java-1.8.0-openjdk/bin/java 1 | ||
RUN update-alternatives --set java java-1.8.0-openjdk.x86_64 | ||
#RUN export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk | ||
|
||
#RUN update-alternatives --set java /usr/lib/jvm/java-1.8.0-openjdk/bin/java | ||
#RUN export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk | ||
|
||
WORKDIR /src | ||
|
||
RUN groupadd -g 48 apache \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 encounter some errors when using these commands in the barebone images:
Please consider if the LCM ruby will have the same errors.