QoL improvements for working on or self-hosting image #381
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This does not change the default behaviour of make.
Substantially reduces the size of the Makefile with macros.
Allows overriding VERSION and NAME during build to easily build, tag, and upload to a custom repository, without editing the Makefile or manually creating tags after build.
Allows building for only a single architecture without editing the Makefile .
Adds support for the following environment variables during make:
VERSION (if set, this overrides the VERSION set in Makefile)
NAME (if set, this overrides the repository and image base name set in Makefile)
BUILD_AMD64 (if this exists and is set to 0, the amd64 images will not be built)
BUILD_ARM64 (if this exists and is set to 0, the arm64 images will not be built)
... make sure these are not set in your environment if you don't want to change the default behaviour of make.
example build with this Makefile:
VERSION=2.6.0.1 BUILD_ARM64=0 NAME="MYAWSACCOUNT.dkr.ecr.us-west-2.amazonaws.com/passenger" make -j1 build_customizable build_ruby32 push_customizable push_ruby32