Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
BlackPearl
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
BlackPearl
Commits
a37bb522
Commit
a37bb522
authored
Oct 31, 2017
by
tywldx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
f
parent
f6d7fb08
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
server.js
app/blackPearl/controller/debug/server.js
+1
-1
start_docker_image.sh
shell_script/start_docker_image.sh
+0
-1
No files found.
app/blackPearl/controller/debug/server.js
View file @
a37bb522
...
...
@@ -79,7 +79,7 @@ exports.initial = async function () {
mock_port
=
res
.
mock_port
;
}
let
run_command
=
`docker run --privileged -d -v
${
pwd
}
/uploads:/root/BlackPearl/uploads -
p
${
xterm_port
}
:3000 -p
${
mock_port
}
:10086 192.168.4.36/playground/debug_image /sbin/init -c "source /etc/profile"
`
;
let
run_command
=
`docker run --privileged -d -v
${
pwd
}
/uploads:/root/BlackPearl/uploads -
e "BP_ENV=debug" -p
${
xterm_port
}
:3000 -p
${
mock_port
}
:10086 192.168.4.36/playground/debug_image /sbin/init
`
;
var
re_str
=
execSync
(
run_command
);
console
.
log
(
run_command
);
var
id
=
String
(
re_str
).
replace
(
/
\n
/
,
""
);
...
...
shell_script/start_docker_image.sh
View file @
a37bb522
#!/bin/bash
docker
exec
${
1
}
BP_ENV
=
debug
docker
exec
${
1
}
pm2 start /root/xterm.js/demo/app.js
--node-args
=
"--harmony"
-n
xterm
docker
exec
${
1
}
redis-server &
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