add centos7 deploy dockerfile

This commit is contained in:
quicksilver 2019-12-14 16:04:48 +08:00
parent 1269701572
commit 180e1804a2
4 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,17 @@
FROM centos:centos7
RUN yum install -y epel-release && \
yum install -y libgomp libgfortran4 mysql-devel && \
rm -rf /var/cache/yum/*
COPY ./milvus /var/lib/milvus
COPY ./docker-entrypoint.sh /var/lib/milvus
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/var/lib/milvus/lib"
WORKDIR /var/lib/milvus
ENTRYPOINT [ "/var/lib/milvus/docker-entrypoint.sh" ]
CMD [ "start" ]
EXPOSE 19530

View File

@ -0,0 +1,9 @@
#!/bin/bash
set -e
if [ "$1" == 'start' ]; then
cd /var/lib/milvus/scripts && ./start_server.sh
fi
exec "$@"

View File

@ -0,0 +1,19 @@
FROM nvidia/cuda:10.1-devel-centos7
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
RUN yum install -y epel-release && \
yum install -y libgomp libgfortran4 mysql-devel && \
rm -rf /var/cache/yum/*
COPY ./milvus /var/lib/milvus
COPY ./docker-entrypoint.sh /var/lib/milvus
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/var/lib/milvus/lib"
WORKDIR /var/lib/milvus
ENTRYPOINT [ "/var/lib/milvus/docker-entrypoint.sh" ]
CMD [ "start" ]
EXPOSE 19530

View File

@ -0,0 +1,9 @@
#!/bin/bash
set -e
if [ "$1" == 'start' ]; then
cd /var/lib/milvus/scripts && ./start_server.sh
fi
exec "$@"