2018-09-05 17:41:38 +02:00
|
|
|
#!/usr/bin/python3
|
2019-06-25 15:56:35 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
2018-09-05 17:41:38 +02:00
|
|
|
|
2019-06-25 15:56:35 +02:00
|
|
|
from lxcbuild.lxcimage import LXCImage
|
2018-09-05 21:21:07 +02:00
|
|
|
|
2018-09-06 09:32:20 +02:00
|
|
|
if __name__ == '__main__':
|
2019-02-26 20:24:02 +01:00
|
|
|
if len(sys.argv) != 2 or sys.argv[1] in ('-h', '--help'):
|
2018-09-06 09:32:20 +02:00
|
|
|
print('Usage: lxc-build <buildpath>\n where the buildpath can be either specific lxcfile or a directory containing one')
|
|
|
|
else:
|
2019-06-25 15:56:35 +02:00
|
|
|
image = LXCImage(sys.argv[1])
|
|
|
|
image.build_and_pack()
|