diff options
author | alexv-smirnov <alex@ydb.tech> | 2023-03-28 22:25:04 +0300 |
---|---|---|
committer | alexv-smirnov <alex@ydb.tech> | 2023-03-28 22:25:04 +0300 |
commit | b8a17f9b1c166d2e9a26b99348a4c29d972caf55 (patch) | |
tree | 1a2d881f1a9452b9c6103dbf69d73da7624e98e5 /build/scripts/container.py | |
parent | 25659221f18577ea38430a8ec3349836f5626b6a (diff) | |
download | ydb-b8a17f9b1c166d2e9a26b99348a4c29d972caf55.tar.gz |
Revert ymake build from ydb oss export
Diffstat (limited to 'build/scripts/container.py')
-rw-r--r-- | build/scripts/container.py | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/build/scripts/container.py b/build/scripts/container.py deleted file mode 100644 index 27e6f921f3..0000000000 --- a/build/scripts/container.py +++ /dev/null @@ -1,30 +0,0 @@ -import subprocess -import os -import shutil - - -class ContainerError(Exception): - pass - - -def join_layers(input_paths, output_path, squashfs_path): - - if len(input_paths) == 1: - shutil.copy2(input_paths[0], output_path) - - else: - # We cannot use appending here as it doesn't allow replacing files - for input_path in input_paths: - unpack_cmd = [ os.path.join(squashfs_path, 'unsquashfs') ] - unpack_cmd.extend([ '-f', input_path ]) - subprocess.run(unpack_cmd) - - pack_cmd = [ os.path.join(squashfs_path, 'mksquashfs') ] - pack_cmd.append(os.path.join(os.curdir, 'squashfs-root')) - pack_cmd.append(output_path) - pack_cmd.append('-all-root') - subprocess.run(pack_cmd) - - shutil.rmtree(os.path.join(os.curdir, 'squashfs-root')) - - return 0 |