When users would like to automate the process of installing and running HarperDB, instead of answering the prompts, there is the capability to pass arguments to the command line, for example:
./harperdb run --TC_AGREEMENT yes --HDB_ROOT /opt/harperdb/hdb --HTTP_PORT 9925 --HTTPS_PORT 31283 --HDB_ADMIN_USERNAME admin --HDB_ADMIN_PASSWORD Abc1234!
All the Following Flags are required.
We use this process internally to automate build and test procedures in containers and VMs.
Below we describe the basic functionality.
./harperdb [ install | run ] --TC_AGREEMENT [yes | no] --HDB_ROOT [PATH] --HTTP_PORT [HTTP_PORT] --HTTPS_PORT [HTTPS_PORT] --HDB_ADMIN_USERNAME [USERNAME] --HDB_ADMIN_PASSWORD [PASSWORD]
The variables definitions are:
[yes | no]: Agree yes, Do not Agree no.
[PATH]: full path to where you would like the HarperDB data to be installed. i.e. /opt/harperdb/hdb
[HTTP_PORT]: port you would like HTTP server to run on
[HTTPS_PORT]: port you would like HTTPS server to run on
[USERNAME]: username of your administrator
[PASSWORD]: password for your administrator user