From: wutianwei Date: Mon, 28 May 2018 01:02:14 +0000 (+0800) Subject: fix the sdc sample deploy issue X-Git-Tag: opnfv-7.0.0~55^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F81%2F57981%2F2;p=clover.git fix the sdc sample deploy issue there is a issue "No module named google.protobuf", when trying to run the services docker. Add the protobuf in services Dockerfile. Change-Id: I280dc1d5908bcec784e9e1e7c4d07e145f092cdb Signed-off-by: wutianwei --- diff --git a/docker/Dockerfile b/docker/Dockerfile index 2cd6340..5cc7323 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -20,7 +20,7 @@ RUN apt-get update \ && apt-get install -y git python-setuptools python-pip curl apt-transport-https \ && apt-get -y autoremove && apt-get clean \ && pip install --upgrade pip \ - && python -m pip install grpcio argparse + && python -m pip install grpcio argparse protobuf # Fetch source code RUN mkdir -p ${REPOS_DIR} diff --git a/samples/services/nginx/docker/subservices/lb/Dockerfile b/samples/services/nginx/docker/subservices/lb/Dockerfile index 125da0b..3b13631 100644 --- a/samples/services/nginx/docker/subservices/lb/Dockerfile +++ b/samples/services/nginx/docker/subservices/lb/Dockerfile @@ -20,7 +20,7 @@ RUN \ python-pip \ && \ # Install required python packages - python -m pip install grpcio redis jinja2 + python -m pip install grpcio redis jinja2 protobuf COPY /process /process COPY /grpc /grpc diff --git a/samples/services/nginx/docker/subservices/proxy/Dockerfile b/samples/services/nginx/docker/subservices/proxy/Dockerfile index 0f061a5..b063de7 100644 --- a/samples/services/nginx/docker/subservices/proxy/Dockerfile +++ b/samples/services/nginx/docker/subservices/proxy/Dockerfile @@ -20,7 +20,7 @@ RUN \ python-pip \ && \ # Install required python packages - python -m pip install grpcio redis jinja2 + python -m pip install grpcio redis jinja2 protobuf COPY /process /process COPY /grpc /grpc diff --git a/samples/services/nginx/docker/subservices/server/Dockerfile b/samples/services/nginx/docker/subservices/server/Dockerfile index 8bf9449..434a8d4 100644 --- a/samples/services/nginx/docker/subservices/server/Dockerfile +++ b/samples/services/nginx/docker/subservices/server/Dockerfile @@ -20,7 +20,7 @@ RUN \ python-pip \ && \ # Install required python packages - python -m pip install grpcio redis jinja2 + python -m pip install grpcio redis jinja2 protobuf COPY /process /process COPY /grpc /grpc diff --git a/samples/services/snort_ids/docker/Dockerfile b/samples/services/snort_ids/docker/Dockerfile index 50686ed..697acb9 100644 --- a/samples/services/snort_ids/docker/Dockerfile +++ b/samples/services/snort_ids/docker/Dockerfile @@ -70,7 +70,7 @@ RUN \ ln -s libdnet.so.1.0.1 libdnet.1 \ && \ # Install required python libraries - python -m pip install grpcio redis idstools + python -m pip install grpcio redis idstools protobuf COPY /process /process COPY /grpc /grpc