summaryrefslogtreecommitdiffstats
path: root/mgr/docker/Dockerfile
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2018-08-08 16:10:48 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2018-08-08 16:10:48 +0800
commitab32ab75c8d721fb1479a3c70fb787b6f224445b (patch)
tree30160c45a926b573dc0dc690556f2e93755676ce /mgr/docker/Dockerfile
parent3ac879dd15908f592e37f2adc445eda4b4f54eaf (diff)
Remove DB and redis service from vnfmgr
Change-Id: I122f239cf4ab59cf5dd65f7fdebd367eebb8b548 Issue-ID: VFC-981 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'mgr/docker/Dockerfile')
-rw-r--r--mgr/docker/Dockerfile18
1 files changed, 0 insertions, 18 deletions
diff --git a/mgr/docker/Dockerfile b/mgr/docker/Dockerfile
index d02977d..16302fe 100644
--- a/mgr/docker/Dockerfile
+++ b/mgr/docker/Dockerfile
@@ -6,9 +6,6 @@ ARG 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 sed -i "s|set compatible|set nocompatible|" /etc/vim/vimrc.tiny
RUN echo "set backspace=2" >> /etc/vim/vimrc.tiny
@@ -19,8 +16,6 @@ RUN apt-get update && \
apt-get install -y python-pip && \
apt-get install -y gcc && \
apt-get install -y libmysqlclient-dev && \
- apt-get install -y redis-server && \
- apt-get install -y mysql-server && \
apt-get install -y mysql-client && \
apt-get install -y wget && \
apt-get install -y unzip && \
@@ -37,23 +32,10 @@ RUN wget -q -O vfc-gvnfm-vnfmgr.zip 'https://nexus.onap.org/service/local/artifa
unzip vfc-gvnfm-vnfmgr.zip && \
rm -rf vfc-gvnfm-vnfmgr.zip
-# get db scripts from nexus
-RUN wget -q -O vfc-gvnfm-vnfres-res.zip 'https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.vfc.gvnfm.vnfres.res&a=vfc-gvnfm-vnfres-res&v=LATEST&e=zip' && \
- unzip vfc-gvnfm-vnfres-res.zip vfc/gvnfm/vnfres/res/assembly/*.* && \
- mv ./vfc/gvnfm/vnfres/res/assembly/bin ./bin && \
- mv ./vfc/gvnfm/vnfres/res/assembly/dbscripts ./dbscripts && \
- rm -rf vfc-gvnfm-vnfres-res.zip
-
-RUN sed -i "s|bind-address.*|# bind-address = 127.0.0.1|" /etc/mysql/my.cnf
-
-VOLUME /var/lib/mysql
-
WORKDIR /service/vfc/gvnfm/vnfmgr/mgr
RUN pip install -r requirements.txt
EXPOSE 8803
-EXPOSE 3306
-EXPOSE 6379
WORKDIR /service
ENTRYPOINT vfc/gvnfm/vnfmgr/mgr/docker/docker-entrypoint.sh