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
95a88186
Commit
95a88186
authored
Dec 28, 2017
by
daidekun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add log
parent
b00558c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
6 deletions
+19
-6
docker-entrypoint.sh
templates/lua-ui/docker-entrypoint.sh
+15
-5
nginx.conf
templates/lua-ui/nginx.conf
+4
-1
No files found.
templates/lua-ui/docker-entrypoint.sh
View file @
95a88186
...
@@ -5,6 +5,9 @@ package_path="/home/quant_group"
...
@@ -5,6 +5,9 @@ package_path="/home/quant_group"
echo
"cd
${
package_path
}
"
echo
"cd
${
package_path
}
"
cd
${
package_path
}
cd
${
package_path
}
export
NAMESPACE
=
`
cat
/var/run/secrets/kubernetes.io/serviceaccount/namespace
`
echo
"NAMESPACE is
$NAMESPACE
"
for
entry
in
./
*
tgz
for
entry
in
./
*
tgz
do
do
with_ext
=
$(
basename
"
$entry
"
)
with_ext
=
$(
basename
"
$entry
"
)
...
@@ -17,10 +20,17 @@ do
...
@@ -17,10 +20,17 @@ do
tar
zxf
${
package_path
}
/
$with_ext
-C
${
package_path
}
/
$fname
tar
zxf
${
package_path
}
/
$with_ext
-C
${
package_path
}
/
$fname
done
done
echo
"sed sed xyqb.com to q-gp.com"
echo
"cd /home/qg-xterm/;git pull;cd -"
namespace
=
`
cat
/var/run/secrets/kubernetes.io/serviceaccount/namespace
`
cd
/home/qg-xterm/
;
git pull
;
cd
-
echo
"namespace is
$namespace
"
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"
sed
-i
"s/xterm.js demo/
${
SYSTEM_NAME
}
@
${
NAMESPACE
}
/"
/home/qg-xterm/demo/index.html
echo
"/usr/bin/openresty -g 'daemon off;'"
echo
"/usr/bin/openresty -g 'daemon off;'"
/usr/bin/openresty
-g
'daemon off;'
nohup
/usr/bin/openresty
-g
'daemon off;'
&
\ No newline at end of file
echo
"node /home/qg-xterm/demo/app.js"
nohup
node /home/qg-xterm/demo/app.js &
echo
"frontail logs/*.log -d -n 1000"
frontail /usr/local/openresty/nginx/logs/
*
log
-n
1000
\ No newline at end of file
templates/lua-ui/nginx.conf
View file @
95a88186
...
@@ -12,7 +12,10 @@ http {
...
@@ -12,7 +12,10 @@ http {
'
$status
$body_bytes_sent
"
$http_referer
"
'
'
$status
$body_bytes_sent
"
$http_referer
"
'
'"
$http_user_agent
"
$http_x_forwarded_for
'
'"
$http_user_agent
"
$http_x_forwarded_for
'
'"
$upstream_addr
"
"
$upstream_status
"
"
$upstream_response_time
"
"
$request_time
"
"
$http_cookie
"'
;
'"
$upstream_addr
"
"
$upstream_status
"
"
$upstream_response_time
"
"
$request_time
"
"
$http_cookie
"'
;
access_log
/usr/local/openresty/nginx/logs/access.log
;
error_log
/usr/local/openresty/nginx/logs/error.log
;
server_names_hash_bucket_size
64
;
server_names_hash_bucket_size
64
;
sendfile
on
;
sendfile
on
;
...
...
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