-
Notifications
You must be signed in to change notification settings - Fork 26
Run the entire installation of the compat layer in a container, without requiring root privileges #167
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
Run the entire installation of the compat layer in a container, without requiring root privileges #167
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
021cd1b
use debian11 container for bootstrap
bedroge ef63412
use debian11 instead of centos8 for the bootstrap
bedroge 60c89f1
run on localhost
bedroge 9ff7d51
dont run as root
bedroge 0b1b4aa
remove singularity command variables
bedroge 1d9763a
dont add portage user/group
bedroge 40fc2df
remove become directive
bedroge 0889158
remove tasks for getting the username and fixing permissions
bedroge 4fc5be5
remove tasks for checking/interacting with host os
bedroge ab508fa
dont check the username
bedroge 263b55a
remove permission fix task
bedroge 3a7c690
remove cvmfs transaction functionality
bedroge 8bdc81e
remove cvmfs transaction variables
bedroge 14e983d
remove become directive
bedroge 0a79fd0
script for doing the full installation of the compat layer in a conta…
bedroge af27639
remove note about host OS
bedroge 907978e
remove cvmfs transaction vars
bedroge 01be223
remove singularity vars
bedroge 6baab37
make script executable
bedroge 4d98e33
update README
bedroge 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 was deleted.
Oops, something went wrong.
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,17 @@ | ||
| FROM debian:11-slim | ||
|
|
||
| COPY bootstrap-prefix.sh /usr/local/bin/bootstrap-prefix.sh | ||
|
|
||
| RUN apt-get update | ||
| RUN apt-get install -y gcc g++ make diffutils libgmp-dev perl wget | ||
| RUN apt-get install -y git python3-pip python3-cryptography | ||
| RUN pip3 install --upgrade pip | ||
Check warningCode scanning / Scorecard Pinned-Dependencies
score is 7: pipCommand not pinned by hash
Click Remediation section below to solve this issue
|
||
| RUN pip3 install ansible | ||
Check warningCode scanning / Scorecard Pinned-Dependencies
score is 7: pipCommand not pinned by hash
Click Remediation section below to solve this issue
|
||
| RUN chmod 755 /usr/local/bin/bootstrap-prefix.sh | ||
|
|
||
| ENV LC_ALL=C.UTF-8 | ||
| ENV PATH=/usr/local/bin:$PATH | ||
|
|
||
| RUN groupadd -g 1000 portage && useradd -ms /bin/bash -u 1000 -g portage portage | ||
|
|
||
| ENTRYPOINT ["/usr/local/bin/bootstrap-prefix.sh"] | ||
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
14 changes: 0 additions & 14 deletions
14
ansible/playbooks/roles/compatibility_layer/tasks/add_overlay.yml
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.
Check warning
Code scanning / Scorecard
Pinned-Dependencies