Created Monday 05 February 2024
Installation of inventree on jail
Instructions from https://textcortex.com/
- root@bx27:/home/k # pkg install -y py37-iocage
- root@bx27:/home/k # iocage create --name inventree --release 14.0-RELEASE --allow_mount_devfs --allow_mount_fuse --allow_raw_sockets --allow_mount_zfs --ip4_addr="vnet0|192.168.0.10/24"
Setting up Inventree in a jail on FreeBSD can be a bit complex, especially if you are new to FreeBSD. But don't worry, I can guide you through the general process.
First, you will need to create a jail using the `iocage` tool, which is a jail manager for FreeBSD. You can install it using the following command:
pkg install -y py37-iocage
Next, you can create a jail with `iocage create` command, for example:
iocage create --name inventree --release 12.2-RELEASE --allow_mount_devfs --allow_mount_fuse --allow_raw_sockets --allow_mount_zfs --ip4_addr="vnet0|192.168.1.10/24"
This command creates a new jail named `inventree`, based on the FreeBSD 12.2-RELEASE version. The `--allow_mount_devfs`, `--allow_mount_fuse`, `--allow_raw_sockets`, and `--allow_mount_zfs` options are necessary for Inventree to work properly. The `--ip4_addr` option specifies the IP address and subnet mask for the jail.
After the jail is created, you can log into it using the following command:
iocage console inventree
You can then install Inventree and its dependencies like you normally would on a regular FreeBSD system. You may need to modify the installation instructions to make sure they work inside the jail.
Once Inventree is installed, you can start the necessary services and configure Inventree to work inside the jail.
Note that this is just a general guide and there may be other steps or configuration details specific to your system or version of FreeBSD. You may also need to consult the official documentation or seek further assistance.