Clone the rooter repository to your local and change directory to rooter
git clone git@gitlab.com:run_as_root/internal/rooter.git rooter
cd rooterNow we need to download all dependencies and prepare a executable.
nix build ".#rooterDev" --impure
# if flakes are disabled:
nix build ".#rooterDev" --impure --extra-experimental-features nix-command --extra-experimental-features flakesInstall Composer dependencies required to executed rooter
composer installNow that all dependencies are installed, we can continue with the rooter installation.
It will initialise directories, configurations, process, ssl certs, etc.
NOTE: This is only necessary if it was not done with the normal installation.
rooterDev installLast but not least, we suggest to make sure rooterDev version available globally.
For that you should either create
- an alias for rooter in you
~/.basrcor~/.zshrc - or create a symlink in any dir that is included in your path
Examples
# add to your .bashrc or .zshrc
alias rooter-dev="<path-to-rooter>/rooter/result/bin/rooterDev"
# optional per environment:
export ROOTER_BIN="<path-to-rooter>/rooter/result/bin/rooterDev"For ease of use you can activate direnv for the rooter project.
By default it will refresh the rooterDev package and make it available in your shell.
direnv allow .To debug rooter itself you need to use the '.#rooterDev' build out (result/bin/rooterDev).
nix build ".#rooterDev" --impure
# if flakes are disabled:
nix build ".#rooterDev" --impure --extra-experimental-features nix-command --extra-experimental-features flakes