Skip to content

Commit

Permalink
Fix to construction of arm packages (#500)
Browse files Browse the repository at this point in the history
  • Loading branch information
yenienserrano authored Jan 28, 2025
1 parent a277817 commit 910f0b3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dev-tools/test-packages/test-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ FILE_OWNER="wazuh-dashboard"
# Remove container and image
clean() {
docker stop $CONTAINER_NAME
# This is done because in the construction of packages arm sometimes fails because it is not finished destroying the container and when trying to delete the image fails because it is in use.
MAX_RETRIES=30
RETRY_COUNT=0
while docker ps --format "{{.Names}}" | grep $CONTAINER_NAME; do
if [ $RETRY_COUNT -ge $MAX_RETRIES ]; then
echo "WARNING: Maximum retries reached while waiting for container to stop"
break
fi
sleep 2
RETRY_COUNT=$((RETRY_COUNT + 1))
done
docker rmi $CONTAINER_NAME
}

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 910f0b3

Please sign in to comment.