- Introduced DEFAULT_IMAGE_VERSION and COMPATIBLE_IMAGE_VERSIONS for
flexible version management.
- Mapped multiple compatible versions to a single configuration block
to avoid duplication.
- Ensured IMAGE_VERSION adjusts dynamically based on user input,
with validation against COMPATIBLE_IMAGE_VERSIONS.
- Streamlined environment variable naming and organized source
layer configuration.
- Added conditional execution for Python2 layer fetching based on the
presence of PYTHON2_SRCREV.
This commit improves the script's maintainability and robustness by clarifying version management and optimizing configuration handling.
- Update DIST_BASEDIR assignment to use $DIST_DIR for improved
clarity and consistency in directory management.
- Rename HTTPD_DIST_HOSTNAME and HTTPD_DIST_DIR to
UPDATE_SERVER_URL and DIST_DIR respectively, across the script to
better reflect their purpose and usage.
- Introduce LOCAL_CONFIG_FILE_INC_PATH variable initialization in
the global scope for enhanced script modularity and maintainability.
- Adjust getopt configuration to align with the renamed and newly
introduced variables.