|
@@ -62,6 +62,7 @@ public class PackerJob implements Callable<List<PackerImage>> { |
|
|
public static final String BUILDERS_VAR = "builders"; |
|
|
public static final String BUILDERS_VAR = "builders"; |
|
|
public static final String PACKER_PLAYBOOK_TEMPLATE = "packer-playbook.yml.hbs"; |
|
|
public static final String PACKER_PLAYBOOK_TEMPLATE = "packer-playbook.yml.hbs"; |
|
|
public static final String PACKER_PLAYBOOK = "packer-playbook.yml"; |
|
|
public static final String PACKER_PLAYBOOK = "packer-playbook.yml"; |
|
|
|
|
|
public static final String PACKER_BINARY = System.getProperty("user.home")+"/packer/packer"; |
|
|
|
|
|
|
|
|
@Autowired private BubbleConfiguration configuration; |
|
|
@Autowired private BubbleConfiguration configuration; |
|
|
@Autowired private AccountDAO accountDAO; |
|
|
@Autowired private AccountDAO accountDAO; |
|
@@ -211,7 +212,7 @@ public class PackerJob implements Callable<List<PackerImage>> { |
|
|
|
|
|
|
|
|
// run packer, return handle to running packer |
|
|
// run packer, return handle to running packer |
|
|
log.info("running packer for " + installType + "..."); |
|
|
log.info("running packer for " + installType + "..."); |
|
|
final CommandResult commandResult = CommandShell.exec(new Command(new CommandLine("packer") |
|
|
|
|
|
|
|
|
final CommandResult commandResult = CommandShell.exec(new Command(new CommandLine(PACKER_BINARY) |
|
|
.addArgument("build") |
|
|
.addArgument("build") |
|
|
.addArgument("-parallel-builds=2") |
|
|
.addArgument("-parallel-builds=2") |
|
|
.addArgument("-color=false") |
|
|
.addArgument("-color=false") |
|
|