1 Star 0 Fork 263

mickelfeng / crawlab

forked from tikazyq / crawlab 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docker_init.sh 978 Bytes
一键复制 编辑 原始数据 按行查看 历史
tikazyq 提交于 2020-03-06 10:15 . try to fix java install issue
#!/bin/bash
# replace default api path to new one
if [ "${CRAWLAB_API_ADDRESS}" = "" ];
then
:
else
jspath=`ls /app/dist/js/app.*.js`
sed -i "s?###CRAWLAB_API_ADDRESS###?${CRAWLAB_API_ADDRESS}?g" ${jspath}
fi
# replace base url
if [ "${CRAWLAB_BASE_URL}" = "" ];
then
:
else
indexpath=/app/dist/index.html
sed -i "s?/js/?${CRAWLAB_BASE_URL}/js/?g" ${indexpath}
sed -i "s?/css/?${CRAWLAB_BASE_URL}/css/?g" ${indexpath}
fi
# start nginx
service nginx start
# install languages
if [ "${CRAWLAB_SERVER_LANG_NODE}" = "Y" ] || [ "${CRAWLAB_SERVER_LANG_JAVA}" = "Y" ];
then
echo "installing languages"
echo "you can view log at /var/log/install.sh.log"
/bin/sh /app/backend/scripts/install.sh >> /var/log/install.sh.log 2>&1 &
fi
# generate ssh
ssh-keygen -q -t rsa -N "" -f ${HOME}/.ssh/id_rsa
# ssh config
touch ${HOME}/.ssh/config && chmod 600 ${HOME}/.ssh/config
cat > ${HOME}/.ssh/config <<EOF
Host *
StrictHostKeyChecking no
EOF
# start backend
crawlab-server
Go
1
https://gitee.com/mickelfeng/crawlab.git
git@gitee.com:mickelfeng/crawlab.git
mickelfeng
crawlab
crawlab
master

搜索帮助