support github enterprise urls for b2d downloads

This commit allows downloading boot2docker releases not only from the official releases url (https://api.github.com/repos/boot2docker/boot2docker/releases) but from arbitrary github repositories that publish releases with a boot2docker.iso artifact. It also supports downloading from github enterprise.

Signed-off-by: Fabian Ruff <fabian@progra.de>
This commit is contained in:
Fabian Ruff
2015-09-15 10:24:50 +02:00
committed by Fabian Ruff
parent a1e610bdd3
commit 5021ffd2e7
8 changed files with 77 additions and 66 deletions

View File

@@ -149,7 +149,7 @@ func (d *Driver) Create() error {
d.setMachineNameIfNotSet()
b2dutils := mcnutils.NewB2dUtils("", "", d.StorePath)
b2dutils := mcnutils.NewB2dUtils(d.StorePath)
if err := b2dutils.CopyIsoToMachineDir(d.boot2DockerURL, d.MachineName); err != nil {
return err
}