Skip to content

Commit

Permalink
Add maven 3.5.2 to all images
Browse files Browse the repository at this point in the history
Fixes: #1, #8
  • Loading branch information
khos2ow committed Jun 19, 2018
1 parent 1dfc767 commit 6aca535
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
8 changes: 7 additions & 1 deletion centos6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ RUN \
createrepo \
mkisofs \
git \
maven \
java-1.8.0-openjdk-devel \
tomcat \
python-argparse \
Expand All @@ -43,12 +42,19 @@ RUN \
gcc \
gcc-c++ \
jq \
wget \
ws-commons-util && \
yum upgrade python-setuptools && \
yum clean all && rm -rf /var/cache/yum

ENV JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk

# 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 clean metadata && \
yum install -y \
apache-maven

VOLUME /mnt/build
WORKDIR /mnt/build

Expand Down
2 changes: 1 addition & 1 deletion centos6/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ if [ -d "${workspace_path}" ]; then
echo "Error: Could not clone remote git repository, '${workspace_path}' exists"
exit 1
else
echo -e "\e[0;32mRemoving ${workspace_path} ...\e[0m"
echo -e "\e[0;32mremoving ${workspace_path} ...\e[0m"
rm -rf ${workspace_path}
echo ""
fi
Expand Down
8 changes: 7 additions & 1 deletion centos7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ RUN \
createrepo \
mkisofs \
git \
maven \
java-1.8.0-openjdk-devel \
tomcat \
python-argparse \
Expand All @@ -43,12 +42,19 @@ RUN \
gcc \
gcc-c++ \
jq \
wget \
ws-commons-util && \
yum upgrade python-setuptools && \
yum clean all && rm -rf /var/cache/yum

ENV JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk

# 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 clean metadata && \
yum install -y \
apache-maven

VOLUME /mnt/build
WORKDIR /mnt/build

Expand Down
2 changes: 1 addition & 1 deletion centos7/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ if [ -d "${workspace_path}" ]; then
echo "Error: Could not clone remote git repository, '${workspace_path}' exists"
exit 1
else
echo -e "\e[0;32mRemoving ${workspace_path} ...\e[0m"
echo -e "\e[0;32mremoving ${workspace_path} ...\e[0m"
rm -rf ${workspace_path}
echo ""
fi
Expand Down

0 comments on commit 6aca535

Please sign in to comment.