mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
Always use tarball, minor fixes to test
This commit is contained in:
parent
09fee291a8
commit
288c5f4c57
2 changed files with 5 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
||||||
provider: {}
|
provider: {}
|
||||||
bootstrapper:
|
bootstrapper:
|
||||||
workspace: /target
|
workspace: /target
|
||||||
|
tarball: true
|
||||||
image:
|
image:
|
||||||
name: debian-{system.release}-{system.architecture}-{%y}{%m}{%d}
|
name: debian-{system.release}-{system.architecture}-{%y}{%m}{%d}
|
||||||
description: Debian {system.release} {system.architecture}
|
description: Debian {system.release} {system.architecture}
|
||||||
|
|
|
@ -26,12 +26,14 @@ volume:
|
||||||
|
|
||||||
bootstrap_info = tools.bootstrap(manifest, build_server)
|
bootstrap_info = tools.bootstrap(manifest, build_server)
|
||||||
|
|
||||||
if isinstance(build_server, tools.build_servers.LocalBuildServer):
|
from bootstrapvz.remote.build_servers import LocalBuildServer
|
||||||
|
if isinstance(build_server, LocalBuildServer):
|
||||||
image_path = bootstrap_info.volume.image_path
|
image_path = bootstrap_info.volume.image_path
|
||||||
else:
|
else:
|
||||||
import tempfile
|
import tempfile
|
||||||
handle, image_path = tempfile.mkstemp()
|
handle, image_path = tempfile.mkstemp()
|
||||||
handle.close()
|
import os
|
||||||
|
os.close(handle)
|
||||||
build_server.download(bootstrap_info.volume.image_path, image_path)
|
build_server.download(bootstrap_info.volume.image_path, image_path)
|
||||||
build_server.delete(bootstrap_info.volume.image_path)
|
build_server.delete(bootstrap_info.volume.image_path)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue