From 67ffccba54e19a12781a8fa9bfb97cb4c42a5108 Mon Sep 17 00:00:00 2001 From: fanxb Date: Tue, 30 Jul 2019 13:55:48 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Deploy:=20[=E9=83=A8=E7=BD=B2]?= =?UTF-8?q?=EF=BC=9A=E5=9C=A8=E6=AD=A4=E5=88=9B=E5=BB=BAes=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=96=87=E4=BB=B6=E5=A4=B9=E5=B9=B6=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?max=5Fmap=5Fcount?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bookMarkDocker/init.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bookMarkDocker/init.sh b/bookMarkDocker/init.sh index 9760834..8c668d2 100755 --- a/bookMarkDocker/init.sh +++ b/bookMarkDocker/init.sh @@ -1,6 +1,13 @@ #/bin/bash base=$(cd "$(dirname "$0")";pwd) +# 创建es存放数据文件夹并设置读写权限 +mkdir $path/es/data>/dev/null 2>&1 + +chmod 777 $path/es/data + +sysctl -w vm.max_map_count=262144 + # 用于前后端打包 docker run -it --rm --name buildBookmark -v $base/../front:/opt/front registry.cn-hangzhou.aliyuncs.com/fleyx/node-java-env:v2 sh -c "cd /opt/front && npm --registry https://registry.npm.taobao.org install && npm run build"