Skip to content

Commit

Permalink
fix the dir related for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
jiarunying committed May 16, 2019
1 parent f5bd770 commit 10abf14
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ public Process exec(String command, String[] envp, Map<String, String> envs, Fil
String javaPath = envs.get("JAVA_HOME");
if (javaPath != null && javaPath != "")
mount += " -v " + javaPath + ":" + javaPath + ":ro";
String[] localDirs = envs.get("LOCAL_DIRS").split(File.pathSeparator);
String[] localDirs = envs.get("LOCAL_DIRS").split(",");
if (localDirs.length > 0) {
for (String perPath : localDirs) {
mount = mount + " -v " + perPath + ":" + perPath;
}
}
String[] logsDirs = envs.get("LOG_DIRS").split(File.pathSeparator);
String[] logsDirs = envs.get("LOG_DIRS").split(",");
if (localDirs.length > 0) {
for (String perPath : logsDirs) {
mount = mount + " -v " + perPath + ":" + perPath;
Expand Down

0 comments on commit 10abf14

Please sign in to comment.