#command #environment #sudo #path #docker #image #home

app ubuild

Run commands in a portable environment

1 unstable release

new 0.1.0 Feb 28, 2025

#953 in Filesystem

Apache-2.0

24KB
512 lines

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.

Dependencies

~14–29MB
~445K SLoC