alternate OCDATAROOT
-
- Subject Matter Expert
- Posts: 11
- Joined: Thu Nov 18, 2021 10:29 am America/New_York
- Been thanked: 1 time
alternate OCDATAROOT
Is it supported, or just plain possible, to install and use OCSSW with $OCDATAROOT outside of $OCSSWROOT?
Following the manual install instructions, I get the very large tree at $OCSSWROOT/share. Then `source $OCSSWROOT/OCSSW_bash.env` points $OCDATAROOT at that tree. I would like to try putting the OCSSW software in a smaller docker image without data, that I can make available in external storage.
I have tried defining $OCDATAROOT ahead of install, which has no effect.
Following the manual install instructions, I get the very large tree at $OCSSWROOT/share. Then `source $OCSSWROOT/OCSSW_bash.env` points $OCDATAROOT at that tree. I would like to try putting the OCSSW software in a smaller docker image without data, that I can make available in external storage.
I have tried defining $OCDATAROOT ahead of install, which has no effect.
Filters:
-
- Subject Matter Expert
- Posts: 2
- Joined: Wed Aug 09, 2023 11:38 am America/New_York
Re: alternate OCDATAROOT
There are 2 viable solutions.
1) change OCSSW_bash.env:
replace line 81 with the following expression
if [ -z ${OCDATAROOT+x} ]; then export OCDATAROOT=$OCSSWROOT/share; else echo "OCDATAROOT is set to '$OCDATAROOT'"; fi
replace line 84 with the following expression
if [ -z ${OCVARROOT+x} ]; then export OCVARROOT=$OCSSWROOT/var; else echo "OCVARROOT is set to '$OCVARROOT'"; fi
2) Go to $OCSSWROOT and create soft links "share" and "var" which would point to an external directory
ln -s share "you_folder"
1) change OCSSW_bash.env:
replace line 81 with the following expression
if [ -z ${OCDATAROOT+x} ]; then export OCDATAROOT=$OCSSWROOT/share; else echo "OCDATAROOT is set to '$OCDATAROOT'"; fi
replace line 84 with the following expression
if [ -z ${OCVARROOT+x} ]; then export OCVARROOT=$OCSSWROOT/var; else echo "OCVARROOT is set to '$OCVARROOT'"; fi
2) Go to $OCSSWROOT and create soft links "share" and "var" which would point to an external directory
ln -s share "you_folder"
-
- Subject Matter Expert
- Posts: 11
- Joined: Thu Nov 18, 2021 10:29 am America/New_York
- Been thanked: 1 time
Re: alternate OCDATAROOT
Thanks, I took option 2.
Option 1 did not make sense because I don't have OCSSW_bash.env until after installation. But if I create the $OCCSWROOT/var and $OCSSWROOT/share symlinks in advance, then I can use `install_ocssw` and `source $OCSSWROOT/OCSSW_bash.env` normally.
Option 1 did not make sense because I don't have OCSSW_bash.env until after installation. But if I create the $OCCSWROOT/var and $OCSSWROOT/share symlinks in advance, then I can use `install_ocssw` and `source $OCSSWROOT/OCSSW_bash.env` normally.