Skip to content
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

Sandbox linux builds using docker and gVisor #252

Closed
wants to merge 96 commits into from
Closed

Sandbox linux builds using docker and gVisor #252

wants to merge 96 commits into from

Conversation

NobodyXu
Copy link
Member

Related: #251

NobodyXu added 30 commits June 16, 2024 19:35
Add missing `shell: bash`
Signed-off-by: Jiahao XU <[email protected]>
Move code to github action

Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Tempdir is now read from env

Signed-off-by: Jiahao XU <[email protected]>
and sepcify `ENTRYPOINT`

Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Use `--init` to use docker provided initd for reaping zombies.
Use `--security-opt="no-new-privileges=true"` to prevent container from gaining any new privileges

Signed-off-by: Jiahao XU <[email protected]>
To use reusable action `build-version`

Signed-off-by: Jiahao XU <[email protected]>
NobodyXu and others added 24 commits June 19, 2024 23:25
Composite action is way too limited

Signed-off-by: Jiahao XU <[email protected]>
Since it requires permission to save into GHA

Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Rm `-it` flags as there is no terminal to attach to
and no stdin at all.

Signed-off-by: Jiahao XU <[email protected]>
`rust:slim` already sets one and adds it to `PATH`

Signed-off-by: Jiahao XU <[email protected]>
 - Give them unique names `CRATE-VERSION-TARGET`
 - Fixed a missing env

Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Only apply it to glibc

Signed-off-by: Jiahao XU <[email protected]>
@NobodyXu
Copy link
Member Author

The failure is because the old version of zig write to its our installation directory, which is immutable.

The blocker for newer zig is that it rejects unknown linker flag --undefined which is used by cargo-auditable.

I think it makes sense to remove cargo-auditable for now, so that we can upgrade to latest release, since the build-process could modify whatever it likes and leave process behind, it is trivial to modify it to something else to prevemt auditing.

@NobodyXu
Copy link
Member Author

NobodyXu commented Jul 13, 2024

cc @alsuren I just discovered https://github.com/cackle-rs/cackle

A tool with sandboxing and code auditing built-in, which seems better than my homebrew solution.

I will close this PR, and open a new PR to refactor/rework the build-system of quickinstall instead.

@NobodyXu NobodyXu closed this Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants