Skip to content

Commit

Permalink
how about this?
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinqian-db committed Oct 23, 2024
1 parent 5c73941 commit f8c6677
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions container/incremental_load.sh.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ function import_config() {
cp "${layer}" "${diff_id}.tar"
# ln -s "${layer}" "${diff_id}.tar"
# TEST TEST TEST
chmod +w "${diff_id}.tar"
xattr -c "${diff_id}.tar"
# chmod +w "${diff_id}.tar"
# xattr -c "${diff_id}.tar"
MISSING+=("${diff_id}.tar")
fi
done
Expand All @@ -207,11 +207,20 @@ EOF

MISSING+=("config.json" "manifest.json")

for file in "${MISSING[@]}"; do
chmod +w "${file}"
xattr -c "${file}"
done

echo ">>>> STEP 5 ${MISSING[@]}"
# We minimize reads / writes by symlinking the layers above
# and then streaming exactly the layers we've established are
# needed into the Docker daemon.
${TAR} cPh "${MISSING[@]}" | tee image.tar | xattr -c | "${DOCKER}" load
${TAR} cPh "${MISSING[@]}" | tee image.tar
chmod +w image.tar
xattr -c image.tar
"${DOCKER}" load < image.tar
# ${TAR} cPh "${MISSING[@]}" | tee image.tar | xattr -c | "${DOCKER}" load
echo ">>>> STEP 6"
}

Expand Down

0 comments on commit f8c6677

Please sign in to comment.