Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support new images naming convention of aquarium-bait 20220118 release
Now fish supports the naming that includes strict image version. And by the way: * Updated the echo dep due to panic in go 1.17: labstack/gommon#46 * Fixed start of the not allocated resources during node init * Updated the test scripts and created script to fill images
- Loading branch information
Showing
13 changed files
with
469 additions
and
57 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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/sh | ||
# | ||
# Script updates the specified fish_vmx_images directory based on the out dir in aquarium-bait repo | ||
# | ||
# Usage: | ||
# $ ./test/fill_images.sh <relative/path/to/workdir/fish_vmx_images> </abs/path/to/aquarium-bait/out> | ||
# | ||
|
||
IMAGES_DIR=$1 | ||
OUT_DIR=$2 | ||
|
||
[ -d "$IMAGES_DIR" ] || exit 1 | ||
[ -d "$OUT_DIR" ] || exit 2 | ||
|
||
if [ "x$(dirname "$OUT_DIR" | cut -c1)" != 'x/' ]; then | ||
echo "ERROR: Need absolute path to the out directory: $OUT_DIR" | ||
exit 3 | ||
fi | ||
|
||
for img in "$OUT_DIR"/*; do | ||
# Processing only directories | ||
[ -d "$img" ] || continue | ||
|
||
echo "Processing '$img'..." | ||
|
||
# Getting the image name | ||
name=$(basename "$img" | rev | cut -d- -f2- | rev) | ||
echo " name: $name" | ||
|
||
rm -rf "$IMAGES_DIR/$name-VERSION" | ||
mkdir -p "$IMAGES_DIR/$name-VERSION" | ||
ln -s "$img" "$IMAGES_DIR/$name-VERSION/" | ||
|
||
echo " done: $(ls -l "$IMAGES_DIR/$name-VERSION/" | tail -1)" | ||
done |
Oops, something went wrong.