Skip to content

Commit

Permalink
Optimize docker build with additional layer
Browse files Browse the repository at this point in the history
  • Loading branch information
jangaraj committed Jul 28, 2017
1 parent c8e9c78 commit 0741389
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
4 changes: 3 additions & 1 deletion dockerfiles/amazonlinux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ WORKDIR /root

RUN \
yum -y -q install git subversion automake autoconf gcc make pcre-devel 1>/dev/null && \
git clone -q https://github.com/monitoringartist/zabbix-docker-monitoring && \
git clone -q https://github.com/monitoringartist/zabbix-docker-monitoring

RUN \
svn --quiet export svn://svn.zabbix.com/${ZABBIX_VERSION} ~/zabbix/ && \
cd ~/zabbix/ && \
./bootstrap.sh 1>/dev/null && \
Expand Down
4 changes: 3 additions & 1 deletion dockerfiles/centos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ WORKDIR /root

RUN \
yum -y -q install git subversion automake autoconf gcc make pcre-devel 1>/dev/null && \
git clone -q https://github.com/monitoringartist/zabbix-docker-monitoring && \
git clone -q https://github.com/monitoringartist/zabbix-docker-monitoring

RUN \
svn --quiet export svn://svn.zabbix.com/${ZABBIX_VERSION} ~/zabbix/ && \
cd ~/zabbix/ && \
./bootstrap.sh 1>/dev/null && \
Expand Down
4 changes: 3 additions & 1 deletion dockerfiles/debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ WORKDIR /root

RUN \
apt-get -qq update 1>/dev/null && \
apt-get -qq --assume-yes install git subversion automake autoconf gcc make pkg-config libpcre3-dev 1>/dev/null && \
apt-get -qq --assume-yes install git subversion automake autoconf gcc make pkg-config libpcre3-dev 1>/dev/null

RUN \
git clone -q https://github.com/monitoringartist/zabbix-docker-monitoring && \
svn --quiet export svn://svn.zabbix.com/${ZABBIX_VERSION} ~/zabbix/ && \
cd ~/zabbix/ && \
Expand Down
4 changes: 3 additions & 1 deletion dockerfiles/fedora/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ WORKDIR /root

RUN \
dnf -y -q install git subversion automake autoconf gcc make pcre-devel 1>/dev/null && \
git clone -q https://github.com/monitoringartist/zabbix-docker-monitoring && \
git clone -q https://github.com/monitoringartist/zabbix-docker-monitoring

RUN \
svn --quiet export svn://svn.zabbix.com/${ZABBIX_VERSION} ~/zabbix/ && \
cd ~/zabbix/ && \
./bootstrap.sh 1>/dev/null && \
Expand Down
4 changes: 3 additions & 1 deletion dockerfiles/opensuse/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ WORKDIR /root

RUN \
zypper install --no-confirm --no-recommends git subversion automake autoconf gcc make pkg-config pcre-devel 1>/dev/null && \
git clone -q https://github.com/monitoringartist/zabbix-docker-monitoring && \
git clone -q https://github.com/monitoringartist/zabbix-docker-monitoring

RUN \
svn --quiet export svn://svn.zabbix.com/${ZABBIX_VERSION} ~/zabbix/ && \
cd ~/zabbix/ && \
./bootstrap.sh 1>/dev/null && \
Expand Down
4 changes: 3 additions & 1 deletion dockerfiles/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ WORKDIR /root
RUN \
apt-get -qq update 1>/dev/null && \
apt-get -qq --assume-yes install git subversion automake autoconf gcc make pkg-config libpcre3-dev 1>/dev/null && \
git clone -q https://github.com/monitoringartist/zabbix-docker-monitoring && \
git clone -q https://github.com/monitoringartist/zabbix-docker-monitoring

RUN \
svn --quiet export svn://svn.zabbix.com/${ZABBIX_VERSION} ~/zabbix/ && \
cd ~/zabbix/ && \
./bootstrap.sh 1>/dev/null && \
Expand Down

0 comments on commit 0741389

Please sign in to comment.