UNCLASSIFIED

You need to sign in or sign up before continuing.
Verified Commit bc6224f1 authored by Al Fontaine's avatar Al Fontaine
Browse files

update jdk

parent 21dc8da7
Pipeline #7067 failed with stage
ARG BASE_REGISTRY=registry.access.redhat.com
ARG BASE_IMAGE=ubi8/ubi
ARG BASE_REGISTRY=nexus-docker-secure.levelup-nexus.svc.cluster.local:18082
ARG BASE_IMAGE=redhat/ubi/ubi8
ARG BASE_TAG=8.1
FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
FROM ${BASE_REGISTRY}/Opensource/openjdk/openjdk:1.13
ARG VERSION=5.15.12
ARG DISTRO_NAME=apache-activemq-${VERSION}
......@@ -14,8 +14,6 @@ LABEL name="ActiveMQ" \
version=$VERSION \
summary="Apache ActiveMQ™ is the most popular open source, multi-protocol, Java-based messaging server. "
RUN yum install -y java
COPY ${DISTRO_NAME}.tar.gz /opt
RUN tar -zxf /opt/${DISTRO_NAME}.tar.gz -C /opt && \
......@@ -23,7 +21,8 @@ RUN tar -zxf /opt/${DISTRO_NAME}.tar.gz -C /opt && \
ln -s /opt/${DISTRO_NAME} ${ACTIVEMQ_HOME} && \
useradd -r ${USER_NAME} --uid=1000 && \
chown -R ${USER_NAME}:${USER_NAME} /opt/${DISTRO_NAME} && \
chown -h ${USER_NAME}:${USER_NAME} ${ACTIVEMQ_HOME}
chown -h ${USER_NAME}:${USER_NAME} ${ACTIVEMQ_HOME} && \
sed -i "/#JAVA_HOME=*/c\JAVA_HOME=/opt/jdk-13.0.2" /opt/${DISTRO_NAME}/bin/env
USER ${USER_NAME}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment