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
4196b38a
Commit
4196b38a
authored
Dec 12, 2017
by
daidekun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加xterm
parent
93f8c55c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
Dockerfile
templates/nodejs/Dockerfile
+1
-1
docker-entrypoint.sh
templates/nodejs/docker-entrypoint.sh
+14
-6
No files found.
templates/nodejs/Dockerfile
View file @
4196b38a
FROM
192.168.4.36/baseimg/nodejs:
pm
2
FROM
192.168.4.36/baseimg/nodejs:
qa_tools_v
2
MAINTAINER
kalvin "dekun.dai@quantgroup.cn"
ARG
BUILD_NUMBER
...
...
templates/nodejs/docker-entrypoint.sh
View file @
4196b38a
...
...
@@ -19,11 +19,19 @@ rm -rf ${package_path}/dist.tgz
echo
"sh start.sh"
sh start.sh
echo
"touch tmp.log"
touch
logs/tmp.log
echo
"sleep 5"
echo
"sleep 3"
sleep
3
echo
"tail -f log"
tail
-f
logs/
*
.log
\ No newline at end of file
if
ls
./
*
log 1> /dev/null 2>&1
;
then
echo
"ls -l ./logs"
ls
-l
./logs
else
echo
"files do not exist"
touch
./logs/tmp.log
fi
echo
"node /home/demoXterm/demo/app.js"
nohup
node /home/demoXterm/demo/app.js &
echo
"frontail logs/*.log -d -n 1000"
frontail ./logs/
*
log
-n
1000
\ No newline at end of file
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