mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 20:09:57 +08:00
add centos7 deploy dockerfile
This commit is contained in:
parent
1269701572
commit
180e1804a2
17
docker/deploy/cpu/centos7/Dockerfile
Normal file
17
docker/deploy/cpu/centos7/Dockerfile
Normal 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
|
9
docker/deploy/cpu/centos7/docker-entrypoint.sh
Executable file
9
docker/deploy/cpu/centos7/docker-entrypoint.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
if [ "$1" == 'start' ]; then
|
||||
cd /var/lib/milvus/scripts && ./start_server.sh
|
||||
fi
|
||||
|
||||
exec "$@"
|
19
docker/deploy/gpu/centos7/Dockerfile
Normal file
19
docker/deploy/gpu/centos7/Dockerfile
Normal 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
|
9
docker/deploy/gpu/centos7/docker-entrypoint.sh
Executable file
9
docker/deploy/gpu/centos7/docker-entrypoint.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
if [ "$1" == 'start' ]; then
|
||||
cd /var/lib/milvus/scripts && ./start_server.sh
|
||||
fi
|
||||
|
||||
exec "$@"
|
Loading…
Reference in New Issue
Block a user