Skip to content

Commit

Permalink
BUGFIX: MSF-25904 Using C9S and java 8 for LCM Bricks
Browse files Browse the repository at this point in the history
  • Loading branch information
hung-nguyen-hoang committed Nov 13, 2023
1 parent 2931de7 commit a983f10
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
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 \
Expand All @@ -33,6 +33,10 @@ 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 /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 \
Expand Down
6 changes: 6 additions & 0 deletions bin/run_brick.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ def handle_error(params, log, brick_type, error, error_message)
params['GDC_EXECUTION_RESULT_LOG_PATH'] = execution_result_log_path

log.info "action=#{brick_type}_execution status=start commit_hash=#{commit_hash} execution_id=#{execution_id}"

# Start sleep to investigate issue no suitable driver found
log.info "action=#{brick_type}_execution status=start commit_hash=#{commit_hash} execution_id=#{execution_id} sleep=start"
sleep(60)
log.info "action=#{brick_type}_execution status=start commit_hash=#{commit_hash} execution_id=#{execution_id} sleep=end"

brick_pipeline.call(params)
rescue GoodData::LcmExecutionError => lcm_error
handle_error(execution_result_log_params, log, brick_type, lcm_error, lcm_error.summary_error)
Expand Down

0 comments on commit a983f10

Please sign in to comment.