-
Notifications
You must be signed in to change notification settings - Fork 9
Run install commands within image container #17
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
Merged
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
2e686ef
Redoing layer installs so that if you are importing from an existing …
travisbcotton 734d1ed
rename installer functions correctly
travisbcotton 83b49e5
fix error where package manager is put before the container name
travisbcotton 640bf91
rinse and repeat the previous step...
travisbcotton 8e510e8
tell GPG add commands to use the container...
travisbcotton c0894c9
working through buildah run errors
travisbcotton d7a8c53
fixing buildah run command format
travisbcotton 4ffbfda
add gpgcheck option
travisbcotton ede02a0
fix weird buildah formatting issue
travisbcotton 23b9a2b
handle package group names with spaces properly
travisbcotton 8f671b0
cosmetic changes...
travisbcotton 0493506
fix gpg check flags order; set default value to False
travisbcotton 761ba5b
actually set the default gpg check value to true...
travisbcotton a8bcddc
increase subuid/subgid
travisbcotton 0bf166e
reconfig how container gets built and how the build is run inside the…
travisbcotton c2d6d91
make entrypoint executable
travisbcotton be6482b
Attempting additional permission adjustments for uidmap/gidmap
alexlovelltroy 9679b34
Update entrypoint to expect running as normal user
alexlovelltroy 23b8f85
simplify entrypoint for both root and non-root invocation
alexlovelltroy 4840e8f
Revert "make entrypoint executable"
travisbcotton ddd5959
signoff working?
travisbcotton 9283d72
Revert "Attempting additional permission adjustments for uidmap/gidmap"
travisbcotton ae92a56
Revert "simplify entrypoint for both root and non-root invocation"
travisbcotton 2d960dc
Update dockerfiles/dnf/Dockerfile
travisbcotton 282388e
update entrypoint to make subuid/gid rnage dynamoc
travisbcotton 8f5fdfb
fix layer calling the correct copyfiles and runmd functions
travisbcotton 982d6e7
removing import of unused Setting python library
travisbcotton 5cabea7
removing uneeded args to install_packages layer.py
travisbcotton File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| #!/bin/bash | ||
| set -euo pipefail | ||
|
|
||
| if [[ -w /etc/subuid && -w /etc/subgid ]]; then | ||
| echo "builder:1001:${USERNS_RANGE:-65536}" > /etc/subuid | ||
| echo "builder:1001:${USERNS_RANGE:-65536}" > /etc/subgid | ||
| fi | ||
|
|
||
| # Make sure builder owns its homedir (optional if baked into image) | ||
| chown -R builder /home/builder || true | ||
|
|
||
| # Run buildah directly | ||
| exec su builder -c "buildah unshare $*" |
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
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.
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.
I've been using this to ensure my outside UID is mapped to
builderso thatbuildercan access things like 0600 files.