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

app ubuild

Run commands in a portable environment

1 unstable release

0.1.0 Feb 28, 2025

#895 in Filesystem

Download history 137/week @ 2025-02-27

137 downloads per month

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
~444K SLoC