Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
李丛阳
education
Commits
f617328e
Commit
f617328e
authored
Jan 23, 2018
by
李丛阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code
parent
ee94873f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
BCodeLxcServiceImpl.java
...soft/business/bcode/service/impl/BCodeLxcServiceImpl.java
+6
-6
No files found.
src/main/java/org/rcisoft/business/bcode/service/impl/BCodeLxcServiceImpl.java
View file @
f617328e
...
@@ -72,20 +72,20 @@ public class BCodeLxcServiceImpl implements BCodeLxcService {
...
@@ -72,20 +72,20 @@ public class BCodeLxcServiceImpl implements BCodeLxcService {
Map
param
=
new
HashMap
<>();
Map
param
=
new
HashMap
<>();
param
.
put
(
"lxcName"
,
lxc
.
getUserId
()
+
"_"
+
lxc
.
getSl
());
param
.
put
(
"lxcName"
,
lxc
.
getUserId
()
+
"_"
+
lxc
.
getSl
());
param
.
put
(
"lxcPort"
,
port
);
param
.
put
(
"lxcPort"
,
port
);
param
.
put
(
"lxcPath"
,
lxc
.
getWorkingDir
());
/* config path*/
/* config path*/
String
destPath
=
global
.
get
PHYSICAL
_UPLOAD_SERVER_LOCATION
()
+
File
.
separator
+
String
destPath
=
global
.
get
BASE
_UPLOAD_SERVER_LOCATION
()
+
File
.
separator
+
global
.
getLxcDockerfilePath
()
+
File
.
separator
+
lxc
.
getUserId
()
+
File
.
separator
;
global
.
getLxcDockerfilePath
()
+
File
.
separator
+
lxc
.
getUserId
()
+
File
.
separator
;
/*启动路径*/
String
dockerPath
=
global
.
getPHYSICAL_UPLOAD_SERVER_LOCATION
()
+
File
.
separator
+
global
.
getLxcDockerfilePath
()
+
File
.
separator
+
lxc
.
getUserId
()
+
File
.
separator
;
param
.
put
(
"lxcPath"
,
dockerPath
);
result
=
freemarkerUtil
.
generatorFileFromModel
(
this
.
getModelProject
(
lxc
.
getCode
()),
destPath
result
=
freemarkerUtil
.
generatorFileFromModel
(
this
.
getModelProject
(
lxc
.
getCode
()),
destPath
,
param
);
,
param
);
if
(!
result
.
isSuccess
())
{
if
(!
result
.
isSuccess
())
{
result
=
new
CommandResult
(
ResultCode
.
FAIL
,
"容器配置文件有误!"
,
lxc
);
result
=
new
CommandResult
(
ResultCode
.
FAIL
,
"容器配置文件有误!"
,
lxc
);
return
result
;
return
result
;
}
}
/*启动路径*/
String
dockerPath
=
global
.
getPHYSICAL_UPLOAD_SERVER_LOCATION
()
+
File
.
separator
+
global
.
getLxcDockerfilePath
()
+
File
.
separator
+
lxc
.
getUserId
()
+
File
.
separator
;
/*2.docker-compose 起容器*/
/*2.docker-compose 起容器*/
log
.
info
(
"执行路径:{}"
,
dockerPath
);
log
.
info
(
"执行路径:{}"
,
dockerPath
);
result
=
lxcCommand
.
startOrDownLxc
(
dockerPath
);
result
=
lxcCommand
.
startOrDownLxc
(
dockerPath
);
...
...
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