Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
Revert back to using UBI 7 image for java-microprofile
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Groeger <[email protected]>
  • Loading branch information
groeges committed Sep 4, 2019
1 parent 82e962c commit 343c5dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 3 additions & 2 deletions incubator/java-microprofile/image/Dockerfile-stack
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.access.redhat.com/ubi8/ubi
FROM registry.access.redhat.com/ubi7/ubi

LABEL vendor="Kabanero" \
name="kabanero/java-microprofile" \
Expand Down Expand Up @@ -39,7 +39,8 @@ RUN set -eux; \
ENV JAVA_TOOL_OPTIONS="-XX:+IgnoreUnrecognizedVMOptions -XX:+UseContainerSupport -XX:+IdleTuningCompactOnIdle -XX:+IdleTuningGcOnIdle"

# Maven install
RUN yum install --disableplugin=subscription-manager -y maven
RUN wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo \
&& yum install --disableplugin=subscription-manager -y apache-maven

ENV MAVEN_HOME /usr/share/maven
ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2"
Expand Down
8 changes: 5 additions & 3 deletions incubator/java-microprofile/image/project/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
FROM registry.access.redhat.com/ubi8/ubi
FROM registry.access.redhat.com/ubi7/ubi

RUN yum upgrade --disableplugin=subscription-manager -y \
&& yum clean --disableplugin=subscription-manager packages \
&& mkdir -p /mvn/repository \
&& echo 'Finished installing dependencies'

USER root
Expand Down Expand Up @@ -30,7 +29,10 @@ COPY . /project
WORKDIR /project/user-app

# Maven install
RUN yum install --disableplugin=subscription-manager -y maven
RUN mkdir -p /mvn/repository

RUN wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo \
&& yum install --disableplugin=subscription-manager -y apache-maven

ENV MAVEN_HOME /usr/share/maven
ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2"
Expand Down

0 comments on commit 343c5dc

Please sign in to comment.