- Introduction
- Documentation
- Prerequisites
- Building
- Packaging
- Installation
- Running
- Testing
- Releasing
- CI/CD
- Contributing
TDgpt: an analytic platform for TDengine
For user manual, system design and architecture, please refer to TDengine Documentation (TDengine 文档).
List the software and tools required to work on the project.
- python 3.10.12+ (for test)
Step-by-step instructions to set up the prerequisites software.
Make sure Python3.10 or above is available before installing anode in your system.
In case of Ubuntu, use the following instructions to install Python 3.10.
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.10
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 2
sudo update-alternatives --config python3
sudo apt install python3.10-venv
sudo apt install python3.10-devInstall the Pip3.10
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10Add the ~/.local/bin into ~/.bashrc or ~/.bash_profile
export PATH=$PATH:~/.local/binThere is no need to build the taosanode, since it is implemented in Python, which is an interpreted language.
In the base directory, you can use the following command to package to build an tarball. The edition and version parameters should be specified when building the tarball.
cd script && ./release.sh -e community -v 3.3.7.0After the packaging is completed, you will find the tarball in the release directory.
ls -lht release
-rw-rw-r-- 1 root root 74K Feb 21 17:04 tdengine-tdgpt-oss-3.3.7.0-linux-x64.tar.gzPlease use the following commands to install taosanode in your system.
# enter the release directory and then unpack the tarball
cd ./release
tar -zxvf ./tdengine-tdgpt-oss-3.3.7.0.alpha-linux-x64.tar.gz
# enter into the package
cd tdengine-tdgpt-oss-3.3.7.0.alpha-linux-x64
# execute the install script
./install.shDuring the installation, Python virtual environment will be established in /var/lib/taos/taosanode/venv by default, as well as the required libraries.
The taosanode will be installed as an system service, but will not automatic started when installed. You need to start the service mannually, by using the following command
systemctl start taosanodedtaosanode provides the RESTFul service powered by uWSGI. You can config the options to tune the performance by changing the default configuration file taosanode.ini located in /etc/taos, which is also the configuration directory for taosd service.
# taosanode service ip:port
http = 127.0.0.1:6035systemctl start/stop/restart taosanoded.service will start/stop/restart the service of taosanode.
The command rmtaosanode will remove the installed taosanode from your system. Note that the python environment won't removed by this script, you need to remove it mannually.
We use Github Actions to run the test suite. Please refer to the workflow definition yaml file in .github/workflows for details.
For the complete list of taosanode Releases, please see Releases.
We use Github Actions for CI/CD workflow configuration. Please refer to the workflow definition yaml file in .github/workflows for details.
Guidelines for contributing to the project:
- Fork the repository
- Create a feature branch
- Submit a pull request