Spotter-VM/build/usr/bin/lxc-build

12 lines
382 B
Python
Executable File

#!/usr/bin/python3
# -*- coding: utf-8 -*-
from lxcbuild.lxcimage import LXCImage
if __name__ == '__main__':
if len(sys.argv) != 2 or sys.argv[1] in ('-h', '--help'):
print('Usage: lxc-build <buildpath>\n where the buildpath can be either specific lxcfile or a directory containing one')
else:
image = LXCImage(sys.argv[1])
image.build_and_pack()