Installing Server CLI
-
SSH into Ubuntu machine with pre-requisites installed
-
Create user
quantotto
and add current user toquantotto
group:sudo useradd quantotto sudo usermod -aG quantotto $USER
-
Logout and login again
-
Verify that user is part of the
quantotto
group:$ groups quser adm cdrom sudo dip plugdev lxd docker quantotto
-
Clone quantotto
install
repository and CD to server folder:git clone https://github.com/quantotto/install cd install/server
-
you should see three scripts:
$ ls -l total 12 -rwxrwxr-x 1 quser quser 1790 Dec 3 21:35 install_server.sh -rwxrwxr-x 1 quser quser 1697 Dec 3 21:35 precheck.sh -rwxrwxr-x 1 quser quser 688 Dec 3 21:35 uninstall_server.sh
-
To verify that your server is ready for installation, run
./precheck.sh
. Here is example of successful run:$ ./precheck.sh user quantotto check: success checking Python version Python 3.8 - success checking docker Docker version 19.03.8, build afacb8b7f0 Docker - success checking Ubuntu release Ubuntu 20.04 - success
-
Run install script:
./install_server.sh
Installation process will set-up a few third party packages and might take a few minutes.
-
Once complete, for environment variables to be set, you can either logout / login or run
source
command:source /etc/profile.d/quantotto.sh
-
Verify that Quantotto Server CLI was successfully setup by running
qtoserver --help
and, if all good, you should see the below output:$ qtoserver --help Usage: qtoserver [OPTIONS] COMMAND [ARGS]... Quantotto Server CLI Configure and manage Quantotto Server deployment Options: --version Show the version and exit. --help Show this message and exit. Commands: customer Manages customers deployment Manages Quantotto deployment product Manages product
With Quantotto Server CLI set-up, you can perform the following operations:
- Configure product deployment
- Deploy product
- Create customer
- Manage deployment
If additional tooling is installed, Server CLI can streamline Quantotto deployment to Kubernetes (use qtok8s
command for this purpose):
$ qtok8s --help
Usage: qtok8s [OPTIONS] COMMAND [ARGS]...
Quantotto Kubernetes CLI
Configure Quantotto Kubernetes deployment
Options:
--version Show the version and exit.
--help Show this message and exit.
Commands:
server Configures server Kubernetes deployment
customer Configures customer Kubernetes deployment