Skip to content

Commit

Permalink
Create devc temp dirs on Windows (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbsox authored Oct 2, 2023
1 parent 2c18988 commit 552b755
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1327,13 +1327,11 @@ private void checkContainerBuildTime(long startTime, File containerBuildContext)

private void startContainer() throws PluginExecutionException {
try {
if (OSUtil.isLinux() || OSUtil.isMac()) { // Added Mac since started getting permission errors for logs folder
// Allow the server to write to the log files. If we don't create it here docker daemon will create it as root.
runCmd("mkdir -p " + serverDirectory + "/logs");
// Added two hidden folders since started getting permissions errors on the dropins folder.
runCmd("mkdir -p " + buildDirectory + "/" + DEVC_HIDDEN_FOLDER + "/apps");
runCmd("mkdir -p " + buildDirectory + "/" + DEVC_HIDDEN_FOLDER + "/dropins");
}
// Allow the server to write to the log files. If we don't create it here docker daemon will create it as root.
new File(serverDirectory, "logs").mkdirs();
// Added two hidden folders since started getting permissions errors on the dropins folder.
new File(buildDirectory, DEVC_HIDDEN_FOLDER + "/apps").mkdirs();
new File(buildDirectory, DEVC_HIDDEN_FOLDER + "/dropins").mkdirs();

info("Starting container...");
String startContainerCommand = getContainerCommand();
Expand Down

0 comments on commit 552b755

Please sign in to comment.