build: Add LOCAL_{ADDONS,HARVESTER}_SRC arguments #763
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.
Problem:
It's currently annoying to build ISO images from the harvester-installer repo when you want to also include changes from a local harvester and/or addons repo. You have to manually edit
Dockerfile.dapper
and tweakDAPPER_RUN_ARGS
to add something like-v /path/to/local/harvester/repo:/go/src/github.com/harvester/harvester
.Solution:
I've added
LOCAL_HARVESTER_SRC
andLOCAL_ADDONS_SRC
environment variables to the build, which, if set, will automatically inject the correct-v /path/to/local/harvester/repo
parameters, so now you can do this:I've also done a little minor rewording and made the harvester repo cloning in
scripts/build-bundle
consistent with what's done inscripts/build
.Related Issue:
N/A
Test plan:
N/A