
Release Notes: - N/A --------- Co-authored-by: michael <michael@zed.dev> Co-authored-by: agus <agus@zed.dev>
1.1 KiB
I need to make several improvements to our Debian image-building scripts. First, fix the typo in the Makefile
where --keyrign
is incorrectly used instead of --keyring
across all build targets, including the standard Debian image and Java variants like debian11-java
, debian11-graal
, and debian11-corretto
. Second, enhance the debian/mkimage.sh
script to include proper error handling, usage documentation, and command-line argument validation. The script should check for required tools like debootstrap
, unzip
, and trivy
, and provide installation instructions if they're missing. Improve the GPG key setup by ensuring the /root/.gnupg
directory is properly configured before importing keys. Add structured logging with timestamps, warnings, and informational messages. Implement better package installation with retries and proper cleanup. Finally, include clear instructions at the end on how to load and run the generated Docker image, with example commands for verification. The script should be robust, well-documented, and fail early with meaningful error messages if system requirements aren't met.