From 946d5af6858351657bf6f22593372ef9311628ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Ludue=C3=B1a?= Date: Tue, 9 Aug 2016 23:28:17 -0300 Subject: [PATCH 1/4] removing not required transaction --- Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index eafa0ae..2e00aed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,6 @@ LABEL Version=$version LABEL Build docker build --rm --tag $maintainer/$imagename . # Install base deps -RUN yum -y install epel-release && yum -y update && yum clean all RUN yum -y install --setopt=tsflags=nodocs epel-release && \ yum -y install net-tools wget curl tar unzip mlocate logrotate strace telnet man unzip vim wget rsyslog cron \ yum -y update && yum clean all From ae9dd441a6327f1235d127e40b5030c94032edeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Ludue=C3=B1a?= Date: Tue, 9 Aug 2016 23:37:02 -0300 Subject: [PATCH 2/4] fixing syntax error --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2e00aed..1ec27f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ LABEL Build docker build --rm --tag $maintainer/$imagename . # Install base deps RUN yum -y install --setopt=tsflags=nodocs epel-release && \ - yum -y install net-tools wget curl tar unzip mlocate logrotate strace telnet man unzip vim wget rsyslog cron \ + yum -y install net-tools wget curl tar unzip mlocate logrotate strace telnet man unzip vim wget rsyslog cron && \ yum -y update && yum clean all # Install Trusted Certificates From 1a2dd2d18584c7d0e853ea12e0c465b2dee0a5b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Ludue=C3=B1a?= Date: Wed, 10 Aug 2016 00:00:28 -0300 Subject: [PATCH 3/4] removing forced packages update. added ENV REFRESHED_AT to control image cache --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1ec27f7..f3ae542 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ FROM centos:centos7 +ENV REFRESHED_AT 2016-08-09 # Define args and set a default value ARG maintainer=tier @@ -17,7 +18,7 @@ LABEL Build docker build --rm --tag $maintainer/$imagename . # Install base deps RUN yum -y install --setopt=tsflags=nodocs epel-release && \ yum -y install net-tools wget curl tar unzip mlocate logrotate strace telnet man unzip vim wget rsyslog cron && \ - yum -y update && yum clean all + yum clean all # Install Trusted Certificates RUN update-ca-trust force-enable From 91a6f6564fa0a4e0c09701c1b8e6c7c09ebb5523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Ludue=C3=B1a?= Date: Wed, 10 Aug 2016 00:11:12 -0300 Subject: [PATCH 4/4] replacing /root by /opt/tier. following Filesystem Hierarchy Standard https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f3ae542..71bd612 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,8 @@ LABEL Build docker build --rm --tag $maintainer/$imagename . # Install base deps RUN yum -y install --setopt=tsflags=nodocs epel-release && \ yum -y install net-tools wget curl tar unzip mlocate logrotate strace telnet man unzip vim wget rsyslog cron && \ - yum clean all + yum clean all && \ + mkdir -p /opt/tier # Install Trusted Certificates RUN update-ca-trust force-enable @@ -26,10 +27,10 @@ ADD ./cert/InCommon.crt /etc/pki/ca-trust/source/anchors/ RUN update-ca-trust extract # Set default environment variables. -ENV HOME /root +ENV HOME /opt/tier # Allow triggerable events on the first time running RUN touch /tmp/firsttimerunning # Define working directory. -WORKDIR /root +WORKDIR /opt/tier