I'm just finishing up the installation scripts (Linux, Mac, and Windows). Developing things cross platform has made me think about current defaults and whether or not they make sense. Before I commit these scripts and wash my hands, I'm interested in some input from the community.
The primary issue is the location of TETHYS_HOME, or the main directory where everything (e.g. source code, database, Miniconda) is put. In the past the instructions said to make this directory at /usr/lib/tethys. This requires sudo access and has not obvious analogous directories on other platforms. I propose that the default TETHYS_HOME directory now be ~/tethys (or C:\%HOMEPATH%\tethys on Windows). This makes it consistent on all platforms and also makes it so the install scripts can be run without sudo (which could be a major benefit for some organizations). The downside is that (unless we do some fancy shell scripting) the script can't install tethys in a location that requires root access (e.g. /usr/lib/tethys). That seems minor and there are work arounds. If it becomes a major obstacle then we could enhance the install scripts to handle that case.
Other default settings that I have in the install scripts that I'd like some feedback on are the BRANCH (the branch of the repository to checkout). Currently the default is dev, but I probably should change that to master. Thoughts?
The default port for the local Tethys database is set to 5436 so it doesn't conflict with the docker postgis port if it is installed.
Also, the script automatically creates a Tethys Portal super user to be able to login to the web portal. The default credentials are Username: admin, Password: pass.
Default values for other parameters needed in the installation process are consistent with how they have been, and I don't see any compelling reason to change them.
Note that any of these parameters can be changed with command line options when running the install script, but I would appreciate some feedback particularly on the TETHYS_HOME and BRANCH variables.