Skip to content

Commit

Permalink
Add maven 3.5.2 to all images (#12)
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 23497a9
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
10 changes: 8 additions & 2 deletions 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,11 +42,18 @@ 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
ENV JAVA_HOME=/usr/lib/jvm/java-1.8.0

# 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
10 changes: 8 additions & 2 deletions 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,11 +42,18 @@ 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
ENV JAVA_HOME=/usr/lib/jvm/java-1.8.0

# 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 23497a9

Please sign in to comment.