-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drain logic from entrypoint into Go code
This is prep for adding multiple entrypoints; right now the Go code has a `build` verb that is always injected by this wrapper. Move the default values into the Go code. A future change will likely make things so that users are required to pass `build` (or perhaps `build-disk`) and this shell script goes away entirely.
- Loading branch information
Showing
4 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ COPY entrypoint.sh / | |
|
||
ENTRYPOINT ["/entrypoint.sh"] | ||
VOLUME /output | ||
WORKDIR /output | ||
VOLUME /store | ||
VOLUME /rpmmd | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
/usr/bin/bootc-image-builder build --store /store --rpmmd /rpmmd --output /output "$@" | ||
# TODO: This script only exists for legacy reasons, the plan is to start requiring | ||
# a e.g. `build-image` entrypoint. | ||
/usr/bin/bootc-image-builder build "$@" |