summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryufei_zhou <yufei.zhou@nokia-sbell.com>2017-10-25 06:59:18 +0800
committeryufei_zhou <yufei.zhou@nokia-sbell.com>2017-10-25 06:59:18 +0800
commitfd0622a54e631438d0016064d8800ace6320e809 (patch)
tree69113feae0ba4cc3002e087e0e032b162bb10a81
parentffe75db279d42b49b3ccf4b9ba503fe37133b5bf (diff)
rebuild rpmdb before use yum command
Change-Id: I98c639af498438b0a2ef45dcf44c9d8fe9263cab Issue-ID: VFC-544 Signed-off-by: yufei_zhou <yufei.zhou@nokia-sbell.com>
-rwxr-xr-xnokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile5
1 files changed, 5 insertions, 0 deletions
diff --git a/nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile b/nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile
index aed34688..77ae678b 100755
--- a/nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile
+++ b/nokia/vnfmdriver/vfcadaptorservice/docker/Dockerfile
@@ -10,6 +10,11 @@ FROM centos:7.2.1511
RUN sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf
RUN sed -i 's|#baseurl=http://mirror.centos.org/centos|baseurl=http://mirrors.ocf.berkeley.edu/centos|' /etc/yum.repos.d/*.repo
+
+RUN rpm --rebuilddb && \
+yum -y swap -- remove fakesystemd -- install systemd systemd-libs
+RUN yum clean all
+
RUN yum update -y
RUN yum install -y wget unzip socat java-1.8.0-openjdk-headless