Skip to content

Commit

Permalink
chore: change to framework main branch and reflactor the dependcy
Browse files Browse the repository at this point in the history
  • Loading branch information
luohf-infinilabs committed Dec 1, 2024
1 parent ae3b792 commit a936a8f
Show file tree
Hide file tree
Showing 150 changed files with 27,834 additions and 7,199 deletions.
6 changes: 0 additions & 6 deletions .dockerignore

This file was deleted.

65 changes: 0 additions & 65 deletions Jenkinsfile

This file was deleted.

41 changes: 0 additions & 41 deletions Jenkinsfile-docker

This file was deleted.

49 changes: 0 additions & 49 deletions Jenkinsfile-linux

This file was deleted.

43 changes: 0 additions & 43 deletions Jenkinsfile-linux-amd64

This file was deleted.

1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ APP_STATIC_FOLDER := .public
APP_STATIC_PACKAGE := public
APP_UI_FOLDER := ui
APP_PLUGIN_FOLDER := plugin
FRAMEWORK_BRANCH := console

# GO15VENDOREXPERIMENT="1" GO111MODULE=off easyjson -all domain.go
include ../framework/Makefile
Expand Down
45 changes: 3 additions & 42 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,11 @@
#INFINI Cloud
#INFINI Console

INFINI Cloud for Elasticsearch
INFINI Console for Elasticsearch/OpenSearch/Easysearch

## 前端开发说明

前端采用 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)环境:
Expand All @@ -51,7 +16,7 @@ npm -v

在国内,你可以安装 `cnpm` 获得更快速、更安全的包管理体验。使用如下命令安装:
```sh
npm install -g cnpm --registry=https://registry.npm.taobao.org
npm install -g cnpm@9.2.0 --registry=https://registry.npm.taobao.org
```

### 下载项目依赖包
Expand All @@ -75,10 +40,6 @@ cnpm run build

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

或者使用 Docker 来打包生成。
```
cnpm run docker:build
```

### 新增项目依赖包
```
Expand Down
32 changes: 0 additions & 32 deletions build-web.sh

This file was deleted.

Loading

0 comments on commit a936a8f

Please sign in to comment.