alternate OCDATAROOT

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
OB.DAAC - itcarroll
Subject Matter Expert
Subject Matter Expert
Posts: 11
Joined: Thu Nov 18, 2021 10:29 am America/New_York
Answers: 1
Been thanked: 1 time

alternate OCDATAROOT

by OB.DAAC - itcarroll » Thu Jul 18, 2024 2:57 pm America/New_York

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.

Filters:

OB ScienceSW - alex
Subject Matter Expert
Subject Matter Expert
Posts: 2
Joined: Wed Aug 09, 2023 11:38 am America/New_York
Answers: 0

Re: alternate OCDATAROOT

by OB ScienceSW - alex » Sat Sep 14, 2024 5:45 pm America/New_York

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"

OB.DAAC - itcarroll
Subject Matter Expert
Subject Matter Expert
Posts: 11
Joined: Thu Nov 18, 2021 10:29 am America/New_York
Answers: 1
Been thanked: 1 time

Re: alternate OCDATAROOT

by OB.DAAC - itcarroll » Wed Sep 18, 2024 4:29 pm America/New_York

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.

Post Reply