Jail: r-repo

one time
zfs create ship/r-repo

create jail
export JAIL=r-repo
export JAILHOSTNAME=repo
export JAILDOMAIN=beyondbell.com
export JAILIP=75
export JAILUSER=r
export JAILUSERID=2002
export JAILUSERVNC=false

/root/FreeBSD/jails/create.sh $JAIL $JAILHOSTNAME $JAILDOMAIN $JAILIP $JAILUSER $JAILUSERID $JAILUSERVNC

iocage set enforce_statfs=1 $JAIL

iocage exec $JAIL "mkdir /data"
iocage fstab -a $JAIL /mnt/ship/$JAIL /data nullfs rw 0 0
iocage fstab -l $JAIL

Notes:

##iocage exec $JAIL "pkg install -y archiva"

##iocage fstab -a $JAIL /mnt/data/apps/rish/`echo $JAIL | cut -d'-' -f 2-` /usr/local/archiva nullfs rw 0 0
## the wrapper.conf file need to be modified as show below"

##iocage exec $JAIL "cp /mnt/config/archiva /usr/local/share/archiva/bin"
##iocage exec $JAIL "sysrc archiva_enable=YES"
##iocage exec $JAIL "service archiva start"

//
r-repo bin # diff archiva archiva.orig
62,63c62,63
< WRAPPER_CMD="/usr/local/lib/javaservicewrapper/bin/wrapper"
< WRAPPER_CONF="/usr/local/archiva/conf/wrapper.conf"
---
> WRAPPER_CMD="%%PREFIX%%/bin/javaservicewrapper"
> WRAPPER_CONF="%%PREFIX%%/etc/conf/wrapper.conf"

r-repo conf # diff wrapper.conf wrapper.conf.sample
6c6
< wrapper.working.dir=/usr/local/share/archiva
---
> wrapper.working.dir=%%DATADIR%%
//

Showcased here is a capital and operational cost effective approach, using minimal server and networking hardware with multiple virtualized applications for Home and Business. This solution template can be easily scaled out and adapted for larger Enterprise deployments.
drop by the diyIT Matrix public room at #diyit:matrix.ahlawat.com
if you have any IT questions/feedback or to request pro bono consulting for a nonprofit

message me privately at @sharad:matrix.ahlawat.com
or email me at - sharad@ahlawat.com - pgpkey: 68DD6B89
Networking and Security Technologist.
EngineerĀ andĀ an avid Programmer.

https://sharad.ahlawat.com
strive to learn and pass on the knowledge to the next generation
one day humanity will understand the meaning of life and hopefully it will be more than ASCII 42 = "*" regex for whatever you want it to be,
and destiny is more than just a roll of a pair of dice with 42 dots (Lets nail down Quantum Entanglement)

May you Live Long (Intelligently) and Prosper and work on technology that matters.
© 2024 Sharad Ahlawat

No personal identifying data is collected or any form of analytics/metrics reported to a third-party by this website.