Open probonopd opened 2 years ago
Before doing anything, one has to bootstrap like shown below:
FreeBSD% sudo rm -rf /usr/local/bastille
FreeBSD% sudo bastille bootstrap 13.1-RELEASE
But then:
FreeBSD% sudo -E bastille create TARGET 13.1-RELEASE IP
grep: warning: stray \ before /
grep: warning: stray \ before /
Invalid: (IP).
Consider adding a utility to create FreeBSD Jails, e.g., using Bastille.
We could use it to simplify the setup of various servers, but also for GUI applications like web browsers.
For example:
https://gitlab.com/bastillebsd-apptemplates/chromium
Or even Linux based ones:
https://gitlab.com/bastillebsd-apptemplates/brave
Thanks @cedwards for pointing me there.
This error message doesn't explain what I need to do. Enable ZFS in bastille.conf? Will continuing do it for me? What if I just continue, do I risk data loss or degarded system performance?
https://bastillebsd.org/getting-started/ (_very_well written, wish all documentation was written like this!) unfortunately doesn't really explain what "make use of ZFS" really means. If it means deduplication (so that having the same OS in every container doesn't eat storage) then it's super cool!
So I edit
/usr/local/etc/bastille/bastille.conf
to contain(How to automate this best? Cheat and ship a preconfigured
bastille.conf
in the hope that updates won't mess with it? No...)To
/etc/defaults/devfs.rules
, addbecause the command given at https://gitlab.com/bastillebsd-apptemplates/chromium does not work when running as root (undefined variable).
The second step doesn't work either:
says
Release must be bootstrapped first; see 'bastille bootstrap'.
. Now what? Use the next command?Argh.
all these variables are not defined for the root user. Should I be running this as a normal user?
No:
What it doesn't say is that one needs
sudo -E
to preserve the user's environment? Or isn't that the case?