Commit e07551f7 authored by daidekun's avatar daidekun

调整

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