Commit e5d74b0a by 钟明宏

更新workdir为workDir

parent 7294cb6b
......@@ -201,7 +201,7 @@ public class BuildMojo extends AbstractDockerMojo {
private String cmd;
/**
* The workdir for the image. Ignored if dockerDirectory is set
* The workDir for the image. Ignored if dockerDirectory is set
*/
@Parameter(property = "workDir")
private String workDir;
......@@ -588,7 +588,7 @@ public class BuildMojo extends AbstractDockerMojo {
baseImage = get(baseImage, profileConfig, "baseImage");
entryPoint = get(entryPoint, profileConfig, "entryPoint");
cmd = get(cmd, profileConfig, "cmd");
workDir = get(workDir, profileConfig, "workdir");
workDir = get(workDir, profileConfig, "workDir");
user = get(user, profileConfig, "user");
}
......@@ -641,7 +641,7 @@ public class BuildMojo extends AbstractDockerMojo {
getLog().warn("Ignoring run because dockerDirectory is set");
}
if (workDir != null) {
getLog().warn("Ignoring workdir because dockerDirectory is set");
getLog().warn("Ignoring workDir because dockerDirectory is set");
}
if (user != null) {
getLog().warn("Ignoring user because dockerDirectory is set");
......
......@@ -54,7 +54,7 @@
<run>ln -s /a /b</run>
<run>wget 127.0.0.1:8080</run>
</runs>
<workdir>/opt/app</workdir>
<workDir>/opt/app</workDir>
<user>app</user>
</configuration>
</plugin>
......
......@@ -55,7 +55,7 @@
<run>ln -s /a /b</run>
<run>wget 127.0.0.1:8080</run>
</runs>
<workdir>/opt/app</workdir>
<workDir>/opt/app</workDir>
<user>app</user>
</configuration>
</plugin>
......
......@@ -51,7 +51,7 @@
<run>wget 127.0.0.1:8080</run>
</runs>
<squashRunCommands>true</squashRunCommands>
<workdir>/opt/app</workdir>
<workDir>/opt/app</workDir>
<user>app</user>
</configuration>
</plugin>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment