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
ac35cca0
Commit
ac35cca0
authored
Jan 23, 2018
by
李丛阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code
parent
f617328e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
BCodeLxcServiceImpl.java
...soft/business/bcode/service/impl/BCodeLxcServiceImpl.java
+2
-1
BCodeServiceImpl.java
...rcisoft/business/bcode/service/impl/BCodeServiceImpl.java
+5
-3
apache.ftl
src/main/resources/templates/lxc/apache.ftl
+1
-1
No files found.
src/main/java/org/rcisoft/business/bcode/service/impl/BCodeLxcServiceImpl.java
View file @
ac35cca0
...
...
@@ -78,7 +78,8 @@ public class BCodeLxcServiceImpl implements BCodeLxcService {
/*启动路径*/
String
dockerPath
=
global
.
getPHYSICAL_UPLOAD_SERVER_LOCATION
()
+
File
.
separator
+
global
.
getLxcDockerfilePath
()
+
File
.
separator
+
lxc
.
getUserId
()
+
File
.
separator
;
param
.
put
(
"lxcPath"
,
dockerPath
);
/*文件路径*/
param
.
put
(
"lxcPath"
,
lxc
.
getWorkingDir
());
result
=
freemarkerUtil
.
generatorFileFromModel
(
this
.
getModelProject
(
lxc
.
getCode
()),
destPath
,
param
);
if
(!
result
.
isSuccess
())
{
...
...
src/main/java/org/rcisoft/business/bcode/service/impl/BCodeServiceImpl.java
View file @
ac35cca0
...
...
@@ -2,7 +2,10 @@ package org.rcisoft.business.bcode.service.impl;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.io.FileUtils
;
import
org.quartz.*
;
import
org.quartz.SchedulerException
;
import
org.quartz.Trigger
;
import
org.quartz.TriggerBuilder
;
import
org.quartz.TriggerKey
;
import
org.rcisoft.business.bchapter.dao.BChapterRepository
;
import
org.rcisoft.business.bchapter.entity.BChapter
;
import
org.rcisoft.business.bcode.model.*
;
...
...
@@ -11,7 +14,6 @@ import org.rcisoft.business.bcode.service.BCodeService;
import
org.rcisoft.business.brslstudent.dao.BRSlStudentRepository
;
import
org.rcisoft.business.bsl.dao.BSlRepository
;
import
org.rcisoft.business.bsl.entity.BSl
;
import
org.rcisoft.business.bstudent.dao.BStudentRepository
;
import
org.rcisoft.business.bstudent.entity.BStudentDto
;
import
org.rcisoft.common.component.Global
;
import
org.rcisoft.core.exception.ServiceException
;
...
...
@@ -161,7 +163,7 @@ public class BCodeServiceImpl implements BCodeService {
+
userInfo
+
File
.
separator
+
StudentCode
;
/*工程 容器docker dir*/
String
dirPath
=
global
.
get
BASE
_UPLOAD_SERVER_LOCATION
()
+
File
.
separator
String
dirPath
=
global
.
get
PHYSICAL
_UPLOAD_SERVER_LOCATION
()
+
File
.
separator
+
global
.
getCOURSE_LOCATION
()
+
File
.
separator
+
global
.
getSL_LOCATION
()
+
File
.
separator
+
slId
+
File
.
separator
...
...
src/main/resources/templates/lxc/apache.ftl
View file @
ac35cca0
...
...
@@ -7,4 +7,4 @@ services:
ports:
- '${lxcPort?c}:80'
volumes:
- ${lxcPath}:/var/www/html/data/
\ No newline at end of file
- ${lxcPath}:/usr/local/apache2/htdocs/
\ 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