-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
removing builder-build from build
and adding instructions how to build the builder
#5
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,11 +58,6 @@ container_mount_opts=( | |
-v "$PWD/$target_dir:/builder/.build" | ||
) | ||
|
||
if [ "$container_image" = localhost/builder ]; then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This part of the build script is intended to speed up local dev / testing, by allowing to automatically rebuild the builder if any local changes were made. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should probably document how this local dev / testing setup works though 😅 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. but how do I use a locally built builder in a separate repo, that holds my features? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't want to build the builder in the same repo that hold my features. I want to have it separated. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The idea is to use a symlink to the build script inside the builder repo instead of a copy of the build script when doing local dev on the builder. That way the builder and the features are still separated, but the builder automatically detects that it is running in local dev mode and rebuilds itself iff necessary. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't understand. Can you plz provide an example? |
||
dir="$(dirname -- "$(realpath -- "${BASH_SOURCE[0]}")")" | ||
"$container_engine" build -t "$container_image" "$dir" | ||
fi | ||
|
||
repo="$(./get_repo)" | ||
commit="$(./get_commit)" | ||
timestamp="$(./get_timestamp)" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this rename necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docker wants to have a Dockerfile. Podman can work with both.