Skip to content

Commit

Permalink
karaf: also add --setopt=skip_missing_names_on_install=False to yum i…
Browse files Browse the repository at this point in the history
…nstall

like 80d07d6 did for java image

see #206
  • Loading branch information
vorburger committed Dec 6, 2018
1 parent 8bad895 commit 9572777
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion karaf/images/centos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ USER root
# Install Maven via SCL

# Dowload Maven from Apache
RUN yum install -y \
RUN yum install -y --setopt=skip_missing_names_on_install=False \
java-1.8.0-openjdk \
java-1.8.0-openjdk-devel \
&& curl https://archive.apache.org/dist/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz | \
Expand Down
2 changes: 1 addition & 1 deletion karaf/images/rhel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ USER root
# Install Maven via SCL

COPY jboss.repo /etc/yum.repos.d/jboss.repo
RUN yum install -y --enablerepo=jboss-rhel-rhscl rh-maven33-maven \
RUN yum install -y --enablerepo=jboss-rhel-rhscl --setopt=skip_missing_names_on_install=False rh-maven33-maven \
&& yum clean all \
&& ln -s /opt/rh/rh-maven33/root/bin/mvn /usr/local/bin/mvn

Expand Down
4 changes: 2 additions & 2 deletions karaf/templates/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ USER root
# Install Maven via SCL
{{? fp.param.base === "rhel"}}
COPY jboss.repo /etc/yum.repos.d/jboss.repo
RUN yum install -y --enablerepo=jboss-rhel-rhscl rh-maven33-maven \
RUN yum install -y --enablerepo=jboss-rhel-rhscl --setopt=skip_missing_names_on_install=False rh-maven33-maven \
&& yum clean all \
&& ln -s /opt/rh/rh-maven33/root/bin/mvn /usr/local/bin/mvn
{{??}}
# Dowload Maven from Apache
RUN yum install -y \
RUN yum install -y --setopt=skip_missing_names_on_install=False \
java-1.8.0-openjdk \
java-1.8.0-openjdk-devel \
&& curl https://archive.apache.org/dist/maven/maven-3/{{= mavenVersion }}/binaries/apache-maven-{{= mavenVersion }}-bin.tar.gz | \
Expand Down

0 comments on commit 9572777

Please sign in to comment.