diff options
author | alexv-smirnov <[email protected]> | 2023-06-13 11:05:01 +0300 |
---|---|---|
committer | alexv-smirnov <[email protected]> | 2023-06-13 11:05:01 +0300 |
commit | bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0 (patch) | |
tree | 1d1df72c0541a59a81439842f46d95396d3e7189 /build/scripts/make_container_layer.py | |
parent | 8bfdfa9a9bd19bddbc58d888e180fbd1218681be (diff) |
add ymake export to ydb
Diffstat (limited to 'build/scripts/make_container_layer.py')
-rw-r--r-- | build/scripts/make_container_layer.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/build/scripts/make_container_layer.py b/build/scripts/make_container_layer.py new file mode 100644 index 00000000000..4f61f5a2e5a --- /dev/null +++ b/build/scripts/make_container_layer.py @@ -0,0 +1,24 @@ +import sys + +import container # 1 + + +class UserError(Exception): + pass + + +def entry(): + import argparse + + parser = argparse.ArgumentParser() + parser.add_argument('-o', '--output', required=True) + parser.add_argument('-s', '--squashfs-path', required=True) + parser.add_argument('input', nargs='*') + + args = parser.parse_args() + + return container.join_layers(args.input, args.output, args.squashfs_path) + + +if __name__ == '__main__': + sys.exit(entry()) |