Commit e07551f7 authored by daidekun's avatar daidekun

调整

parent f1fd6d3f
......@@ -22,7 +22,8 @@ RUN apt-get update \
&& /etc/init.d/ssh start
WORKDIR /home/quant_group/mysql
COPY ./sql_to_run .
RUN mkdir sql_to_run
COPY ./sql_to_run/* ./sql_to_run
COPY docker-entrypoint.sh .
COPY db_execute_sql.sh .
......
......@@ -6,7 +6,6 @@
# Description: 执行目录下所有数据库脚本
# -------------------------------------------------------------------------------
mysql_host=$1
sql_file_folder=./sql_to_run
echo "cd $sql_file_folder"
......@@ -15,5 +14,5 @@ cd $sql_file_folder
for entry in ./*
do
echo "run sql file: $entry"
mysql -h $mysql_host -uroot -pQuantgroup2017 < $entry
mysql -uroot -pQuantgroup2017 < $entry
done
\ No newline at end of file
#!/bin/sh
public_ip="www.q-gp.com"
echo "java_start java"
module_name="redpacket"
package_path="./redpacket/redpacket-0.0.1-master-SNAPSHOT.jar"
echo "java -Xmx512m -XX:PermSize64m -Xloggc:/tmp/${module_name}_gc.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -jar ${package_path} --worker 1 --currentWorker 1 -t > /dev/null 2>&1"
java -Xmx512m -XX:PermSize64m -Xloggc:/tmp/${module_name}_gc.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -jar ${package_path} --worker 1 --currentWorker 1 -t > /dev/null 2>&1
\ No newline at end of file
sh ./db_execute_sql
\ 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