Skip to content

Commit

Permalink
Fix fabric8io#1112: portPropertyFile not written anymore
Browse files Browse the repository at this point in the history
port mappings should be written after we start containers.
  • Loading branch information
rohanKanojia committed Jul 27, 2019
1 parent a9c6f22 commit 6f24819
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/io/fabric8/maven/docker/StartMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -297,11 +297,12 @@ private void startImage(final ImageConfiguration imageConfig,

startingContainers.submit(() -> {

String containerId = startExecutor.startContainers();

// Update port-mapping writer
portMappingPropertyWriteHelper.add(portMapping, runConfig.getPortPropertyFile());


String containerId = startExecutor.startContainers();

return new StartedContainer(imageConfig, containerId);
});
Expand Down

0 comments on commit 6f24819

Please sign in to comment.