Go to file
medcl f7fc4c00a3 filter for only agent 2023-10-25 17:02:23 +08:00
common optimize map label api 2023-06-19 07:21:22 +08:00
config update configs 2023-10-25 17:02:02 +08:00
config_repo update local config samples 2023-10-23 22:03:57 +08:00
db add db script folder 2020-03-27 23:16:15 +08:00
docker add centos based docker 2022-08-25 15:47:10 +08:00
model fix build 2023-10-16 17:51:45 +08:00
modules/agent filter for only agent 2023-10-25 17:02:23 +08:00
plugin Merge branch 'master' into v2 2023-10-24 11:27:34 +08:00
service/alerting temp commit 2023-09-16 17:45:33 +08:00
.dockerignore update web docker config 2020-04-20 12:24:37 +08:00
.gitignore fix .public clean by git 2023-06-03 23:46:19 +08:00
Jenkinsfile add loong64 overwrite when go 1.19.7 fix 2023-05-23 11:07:08 +08:00
Jenkinsfile-docker fix jenkins 2022-11-09 20:00:29 +08:00
Jenkinsfile-linux fix: arm build eol error 2023-09-21 09:09:18 +08:00
Jenkinsfile-linux-amd64 for ui common Jenkinsfile fix 2023-09-08 17:44:08 +08:00
Makefile update makefile 2022-03-22 16:13:09 +08:00
NOTICE add license and notice to build files 2022-06-01 18:10:07 +08:00
README.md update footprint 2022-01-25 15:45:03 +08:00
bootstrap_check.go fix get nil endpoint 2023-09-16 17:42:51 +08:00
build-web.sh fix: build path 2023-09-26 14:07:21 +08:00
build.bat fix package and build 2020-11-08 11:04:41 +08:00
build.sh remove opt from Dockerfile 2023-09-05 12:32:19 +08:00
console.yml fix build 2023-10-16 17:51:45 +08:00
main.go support remote config store 2023-10-19 21:14:49 +08:00
ui.go fixed merge master conflicts 2022-10-25 15:06:25 +08:00

README.md

#INFINI Cloud

INFINI Cloud for Elasticsearch

前端开发说明

前端采用 React 开发,最终输出为 .public 目录的纯静态资源,可以独立部署无需依赖 Node 环境。

Docker 开发环境准备

安装 Docker

设置 Docker 国内镜像

修改 Docker engine 的设置Windows 在 Docker Desktop 的 setting 里面Linux 在 /etc/docker/daemon.json

{
  "registry-mirrors": [
    "https://registry.docker-cn.com",
    "https://docker.mirrors.ustc.edu.cn/"
  ],
  "insecure-registries": [],
  "debug": true,
  "experimental": false
}

启动开发环境

cnpm run docker:dev

启动完成,稍等片刻,打开 http://localhost:8000/,手动刷新即可看到最新的更改

手动更新开发镜像

docker login -u infini -p ltd docker.infini.ltd:64443
docker pull docker.infini.ltd:64443/nodejs-dev:latest

本地开发环境准备

确保已经安装好nodejs(版本大于等于 8.5.0)环境:

node -v
npm -v

在国内,你可以安装 cnpm 获得更快速、更安全的包管理体验。使用如下命令安装:

npm install -g cnpm --registry=https://registry.npm.taobao.org

下载项目依赖包

cnpm install
cnpm install -g  cross-env

启动开发模式

cnpm run dev

编译静态资源

cnpm run build

执行该命令后会生成最终的 HTML、CSS 和 JS 到 /.public 目录下。它们是浏览器可以直接识别并运行的代码,这样你就可以将它们部署到你想要的服务器上了。

或者使用 Docker 来打包生成。

cnpm run docker:build

新增项目依赖包

cnpm install --save md5

前端开发常用链接