Offline Environment Template Update
Introduction¶
This section describes how to manually update view template packages, metrics dictionaries, and official Pipeline packages in an offline environment without upgrading the Guance version.
How to Update View Template Packages in an Offline Environment¶
- Download the latest view template package: https://gitee.com/dataflux/dataflux-template You need to download the template package from the master branch. After a successful download, you will get a dataflux-template-master.zip file.
- Upload the downloaded file to the container's persistent storage directory at the path: forethought-core namespace --> inner container -->
/config/cloudcare-forethought-backend/sysconfig/staticFolder/
- Replace the contents of the previous staticFolder with the uploaded file.
cd /config/cloudcare-forethought-backend/sysconfig/staticFolder unzip dataflux-template-master.zip # On initial deployment, since the dataflux-template does not exist, there is no need to execute the mv operation. During use, if you need to update the template, then you need to perform the mv operation. # mv dataflux-template dataflux-template-bak mv dataflux-template-master dataflux-template
- Enter the Python environment. Path: forethought-core namespace --> inner container -->
/config/cloudcare-forethought-backend
- Execute the Python command
- Seeing the following prompt indicates that the import was successful:
How to Update Metrics Dictionary JSON in an Offline Environment¶
- Download the latest metrics dictionary JSON file: https://static.guance.com/datakit/measurements-meta.json
- In the directory path: forethought-core namespace --> inner container -->
/config/cloudcare-forethought-backend/sysconfig/staticFolder/metric
, create a newmetric_config.json
file and paste the content from the link into it.
How to Update Official Pipeline Library in an Offline Environment¶
- Download the latest internal pipelines JSON file: https://static.guance.com/datakit/internal-pipelines.json
- In the directory path: forethought-core namespace --> inner container -->
/config/cloudcare-forethought-backend/sysconfig/staticFolder
, create a newinternal-pipelines.json
file and paste the content from the link into it.