Add install requirements in svnfm zte vmanager driver
dockerfile.
Change-Id: I6f9da0de6415acc6749e259759a7ab774145ef9a
Issue-ID: VFC-283
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
ENV http_proxy $HTTP_PROXY
ENV https_proxy $HTTPS_PROXY
ENV http_proxy $HTTP_PROXY
ENV https_proxy $HTTPS_PROXY
-RUN echo "mysql-server mysql-server/root_password password root" | debconf-set-selections
-RUN echo "mysql-server mysql-server/root_password_again password root" | debconf-set-selections
-
RUN apt-get update && \
apt-get install -y python-virtualenv && \
apt-get install -y python-setuptools && \
RUN apt-get update && \
apt-get install -y python-virtualenv && \
apt-get install -y python-setuptools && \
apt-get install -y curl && \
apt-get install -y build-essential && \
apt-get install -y libssl-dev && \
apt-get install -y curl && \
apt-get install -y build-essential && \
apt-get install -y libssl-dev && \
- apt-get install -y libffi-dev && \
- yes | pip install cryptography
+ apt-get install -y libffi-dev
ADD . /service
WORKDIR /service
ADD . /service
WORKDIR /service
unzip vfc-nfvo-driver-vnfm-svnfm-zte-vmanager.zip && \
rm -rf vfc-nfvo-driver-vnfm-svnfm-zte-vmanager.zip
unzip vfc-nfvo-driver-vnfm-svnfm-zte-vmanager.zip && \
rm -rf vfc-nfvo-driver-vnfm-svnfm-zte-vmanager.zip
+WORKDIR /service/vfc/nfvo/driver/vnfm/svnfm/zte/vmanager
+RUN pip install -r requirements.txt
+
EXPOSE 8410
WORKDIR /service
EXPOSE 8410
WORKDIR /service
BUILD_ARGS+=" --build-arg HTTPS_PROXY=${HTTPS_PROXY}"
fi
BUILD_ARGS+=" --build-arg HTTPS_PROXY=${HTTPS_PROXY}"
fi
-function build_ztevmanagerdriver {
echo "Start build docker image: ${IMAGE_NAME}"
docker build ${BUILD_ARGS} -t ${IMAGE_NAME}:${VERSION} -t ${IMAGE_NAME}:latest .
}
echo "Start build docker image: ${IMAGE_NAME}"
docker build ${BUILD_ARGS} -t ${IMAGE_NAME}:${VERSION} -t ${IMAGE_NAME}:latest .
}
-function push_ztevmanagerdriver {
echo "Start push docker image: ${IMAGE_NAME}"
docker push ${IMAGE_NAME}:${VERSION}
docker push ${IMAGE_NAME}:latest
}
echo "Start push docker image: ${IMAGE_NAME}"
docker push ${IMAGE_NAME}:${VERSION}
docker push ${IMAGE_NAME}:latest
}
-build_ztevmanagerdriver
-push_ztevmanagerdriver
# Wait for MSB initialization
echo "Wait for MSB initialization"
# Wait for MSB initialization
echo "Wait for MSB initialization"
curl -sS -m 1 $MSB_ADDR > /dev/null && break
sleep $i
done
curl -sS -m 1 $MSB_ADDR > /dev/null && break
sleep $i
done
-
-function install_python_libs {
- cd /service/vfc/gvnfm/vnfres/res/
- pip install -r requirements.txt
-}
-
-install_python_libs