fix(fnos): reuse content-addressed core runtime
This commit is contained in:
@@ -26,6 +26,11 @@ grep -q '^runtime/wheels/.*\.whl$' "$work_dir/files.txt"
|
||||
grep -q '^bin/libOpenCL.so.1$' "$work_dir/files.txt"
|
||||
runtime_version=$(tar -xOzf "$work_dir/app.tgz" runtime/VERSION | sed -n '1p')
|
||||
test "$runtime_version" = "$version"
|
||||
runtime_app_version=$(tar -xOzf "$work_dir/app.tgz" runtime/VERSION | sed -n '2p')
|
||||
runtime_package_id=$(tar -xOzf "$work_dir/app.tgz" runtime/VERSION | sed -n '3p')
|
||||
test -n "$runtime_app_version"
|
||||
test "${#runtime_package_id}" -eq 64
|
||||
grep -q "^runtime/imagefind-${runtime_app_version}-.*\\.whl$" "$work_dir/files.txt"
|
||||
if grep -Eq '^(data|models|cache|postgresql)/' "$work_dir/files.txt"; then
|
||||
printf 'persistent data must not be included in ImageFind app.tgz\n' >&2
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user