-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): disk validation for docker volume mount (#7665)
* fix(ci): disk validation for docker volume mount * Use a symlink for lightwalletd cached state rather than mounting the same volume twice * Avoid "sdb seems to be busy" errors from docker by adding extra sleeps * Add a missing backslash * Remove symlink from workflow * Symlink lightwalletd path in entrypoint.sh * Retry on failure and check Docker logs * End ssh shell lines with explicit terminators * Delete Docker containers if Docker mount fails * Revert symlink changes in entrypoint.sh * Debug using lsof * Use correct lsof commands * Use correct syntax for lsof +D * fix(ci): make multiple validations before mounting Loop and checks for three conditions: The device `/dev/sdb` exists. No process is using the device `/dev/sdb`. No process is using the Docker volume directory. * fix: do not pre-mount docker volume The Docker version available with the newer `cos-stable` OS (https://cloud.google.com/release-notes#cos-109-17800-0-45) allows to mount the image when running it. Mounting it before makes the disk unavailable. * fix: remove extra `;` * fix: just confirm with `lsof` and show it's output * chore: reduce diff --------- Co-authored-by: teor <[email protected]>
- Loading branch information
1 parent
f3238fc
commit 5c3a02a
Showing
1 changed file
with
17 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters