ubuild

Crates.ioubuild
lib.rsubuild
version0.1.0
created_at2025-02-28 10:22:46.455186+00
updated_at2025-02-28 10:22:46.455186+00
descriptionRun commands in a portable environment
homepage
repository
max_upload_size
id1572644
size82,820
Xuewei Niu (justxuewei)

documentation

README

ubuild

The ubuild, standing for universal build, builds softwares in the universal environment.

How to use

# ubuild <IMAGE> <COMMAND>
$ ubuild rund:master make LIBC=gnu
# One-line command is equivalent to (docker engine)
$ sudo docker run --rm \
    -v $HOME:$HOME \
    -v $HOME/.ssh:/home/$IMAGEUSER/.ssh:ro \
    -w $(pwd) \
    rund:master \
    bash -c "source /home/$IMAGEUSER/.bashrc && make LIBC=gnu"

Note that DO NOT use ubuild with sudo. Otherwise, the default base path will be the root's home directory. By default, the ubuild starts the container with sudo. If you don't want this, a --no-sudo argument should be applied.

Please refer to ubuild -h for more usages.

Commit count: 0

cargo fmt