Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qg-dockerfiles
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qg-dockerfiles
Commits
16665f23
Commit
16665f23
authored
Apr 10, 2018
by
wentao.suo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.quantgroup.cn/QA/qg-dockerfiles
parents
e47a43d3
181124ca
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
7 deletions
+12
-7
docker-entrypoint.sh
templates/java/docker-entrypoint.sh
+9
-7
docker-entrypoint.sh
templates/lua-ui/docker-entrypoint.sh
+1
-0
docker-entrypoint.sh
templates/nodejs/docker-entrypoint.sh
+1
-0
docker-entrypoint.sh
templates/python/docker-entrypoint.sh
+1
-0
No files found.
templates/java/docker-entrypoint.sh
View file @
16665f23
...
@@ -37,7 +37,7 @@ count=0
...
@@ -37,7 +37,7 @@ count=0
log_exist
=
0
log_exist
=
0
log_path
=
"/home/quant_group/logs"
log_path
=
"/home/quant_group/logs"
until
[[
$count
-eq
12
0
]]
||
[[
$log_exist
-eq
1
]]
until
[[
$count
-eq
6
0
]]
||
[[
$log_exist
-eq
1
]]
do
do
let
count+
=
1
let
count+
=
1
echo
"count is
$count
"
echo
"count is
$count
"
...
@@ -45,13 +45,15 @@ do
...
@@ -45,13 +45,15 @@ do
if
find
"
$log_path
"
-mindepth
1
-print
-quit
|
grep
-q
.
;
then
if
find
"
$log_path
"
-mindepth
1
-print
-quit
|
grep
-q
.
;
then
echo
"log is exist!"
echo
"log is exist!"
log_exist
=
1
log_exist
=
1
else
touch
./logs/error.log
echo
"Log is not exist or java server start error."
>>
./logs/error.log
fi
fi
sleep
1
sleep
1
done
done
if
[[
$count
-eq
60
]]
&&
[[
$log_exist
-eq
0
]]
;
then
touch
./logs/error.log
echo
"Log is not exist or java server start error."
>>
./logs/error.log
fi
echo
"cd /home/qg-xterm/;git pull;cd -"
echo
"cd /home/qg-xterm/;git pull;cd -"
cd
/home/qg-xterm/
;
git pull
;
cd
-
cd
/home/qg-xterm/
;
git pull
;
cd
-
...
@@ -59,7 +61,7 @@ echo "node /home/qg-xterm/demo/app.js"
...
@@ -59,7 +61,7 @@ echo "node /home/qg-xterm/demo/app.js"
nohup
node /home/qg-xterm/demo/app.js &
nohup
node /home/qg-xterm/demo/app.js &
echo
"frontail ./logs/*log -n 500 -d "
echo
"frontail ./logs/*log -n 500 -d "
frontail ./logs/
*
log
-n
500
frontail ./logs/
*
log
-n
500
-d
# echo "tail -f ./logs/*log"
echo
"tail -f ./logs/*log"
# tail -f ./logs/*log
tail
-f
./logs/
*
log
\ No newline at end of file
\ No newline at end of file
templates/lua-ui/docker-entrypoint.sh
View file @
16665f23
...
@@ -25,6 +25,7 @@ done
...
@@ -25,6 +25,7 @@ done
echo
"cd /home/qg-xterm/;git pull;cd -"
echo
"cd /home/qg-xterm/;git pull;cd -"
cd
/home/qg-xterm/
;
git pull
;
cd
-
cd
/home/qg-xterm/
;
git pull
;
cd
-
source
~/.bash_profile
echo
"sed xyqb.com to q-gp.com"
echo
"sed xyqb.com to q-gp.com"
# find ${package_path}/ -name "*.js" | xargs sed -i "s/.xyqb.com/-$NAMESPACE.q-gp.com/g"
# find ${package_path}/ -name "*.js" | xargs sed -i "s/.xyqb.com/-$NAMESPACE.q-gp.com/g"
...
...
templates/nodejs/docker-entrypoint.sh
View file @
16665f23
...
@@ -18,6 +18,7 @@ sed -i "s#xterm.js demo#${SYSTEM_NAME}@${namespace}#" /home/qg-xterm/demo/index
...
@@ -18,6 +18,7 @@ sed -i "s#xterm.js demo#${SYSTEM_NAME}@${namespace}#" /home/qg-xterm/demo/index
echo
"rm dist.tgz public/dist -rf"
echo
"rm dist.tgz public/dist -rf"
rm
-rf
${
package_path
}
/dist.tgz
rm
-rf
${
package_path
}
/dist.tgz
source
~/.bash_profile
echo
"sh start.sh"
echo
"sh start.sh"
sh start.sh
sh start.sh
...
...
templates/python/docker-entrypoint.sh
View file @
16665f23
...
@@ -4,6 +4,7 @@ package_path="/home/quant_group/project"
...
@@ -4,6 +4,7 @@ package_path="/home/quant_group/project"
echo
"cd
${
package_path
}
"
echo
"cd
${
package_path
}
"
cd
${
package_path
}
cd
${
package_path
}
source
~/.bash_profile
echo
"tar zxf dist.tgz -C
${
package_path
}
"
echo
"tar zxf dist.tgz -C
${
package_path
}
"
tar
zxf
${
package_path
}
/dist.tgz
-C
${
package_path
}
/
tar
zxf
${
package_path
}
/dist.tgz
-C
${
package_path
}
/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment