Commit ff0a7eae authored by 智勇's avatar 智勇

ui run.sh

parent a436fd4b
......@@ -30,5 +30,6 @@ RUN echo -e "${BUILD_SCHEMA//@/\n}" >> ./build_info
COPY --from=0 /code/* /home/quant_group/
COPY docker-entrypoint.sh .
COPY run.sh .
RUN chmod +x ./docker-entrypoint.sh
CMD ./docker-entrypoint.sh
\ No newline at end of file
#!/bin/bash
echo 172.30.10.23 git.quantgroup.cn >> /etc/hosts
curl -sSL http://git.quantgroup.cn/QA/qg-docker-entrypoints/raw/java/tke/ui.sh -o run.sh
# curl -sSL http://git.quantgroup.cn/QA/qg-docker-entrypoints/raw/java/tke/ui.sh -o run.sh
sh run.sh
#!/bin/bash
echo "start run ui"
current="/home/quant_group"
echo "current: ${current}"
export NAMESPACE=`cat /var/run/secrets/kubernetes.io/serviceaccount/namespace`
echo "NAMESPACE is $NAMESPACE"
# 运行qa工具
echo "SYSTEM_NAME is $SYSTEM_NAME"
host=`curl -s http://172.30.220.22:3003/proconfig/get_host?system_name=${SYSTEM_NAME}`
echo "host: ${host}"
for entry in ./*tgz
do
with_ext=$(basename "$entry")
echo ${with_ext}
fname="${with_ext%.*}"
echo "mkdir -p ${current}/$fname"
mkdir -p ${current}/$fname
echo "tar zxf ${current}/$with_ext -C ${current}/$fname"
tar zxf ${current}/$with_ext -C ${current}/$fname
# echo "rm -rf ${package_path}/$with_ext"
# rm -rf ${package_path}/$with_ext
done
curl -sSL http://git.quantgroup.cn/QA/config_repository/raw/master/yaml/replace.py -o replace.py
curl -sSL http://git.quantgroup.cn/QA/config_repository/raw/master/yaml/replace_config.yaml -o replace_config.yaml
python replace.py $host;
echo "/usr/bin/openresty -g 'daemon off;'"
/usr/bin/openresty -g 'daemon off;'
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment