This is an automated email from the ASF dual-hosted git repository.
gongchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git
The following commit(s) were added to refs/heads/master by this push:
new 15768d807 [infra] support contribute with Gitpod (#2419)
15768d807 is described below
commit 15768d8077c43bdb626b18cb32fa79e8b8568f9d
Author: Kerwin Bryant <[email protected]>
AuthorDate: Tue Jul 30 21:31:09 2024 +0800
[infra] support contribute with Gitpod (#2419)
---
.devcontainer/devcontainer.json | 38 ++++++++++++++++++++++++++++++++++++++
.gitpod.Dockerfile | 7 +++++++
.gitpod.yml | 41 +++++++++++++++++++++++++++++++++++++++++
.licenserc.yaml | 6 ++++--
README.md | 1 +
README_CN.md | 1 +
6 files changed, 92 insertions(+), 2 deletions(-)
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
new file mode 100644
index 000000000..349fa4ad2
--- /dev/null
+++ b/.devcontainer/devcontainer.json
@@ -0,0 +1,38 @@
+{
+ "name": "Hertzbeat DevContainer",
+ "image": "mcr.microsoft.com/devcontainers/base:ubuntu",
+ "features": {
+ "ghcr.io/devcontainers/features/java:1": {
+ "version": "17",
+ "installMaven": "true",
+ "installGradle": "false"
+ },
+ "ghcr.io/devcontainers/features/node:1": {
+ "version": "20"
+ },
+ "ghcr.io/devcontainers/features/git-lfs:1.1.0": {}
+ },
+ "customizations": {
+ "vscode": {
+ "settings": {},
+ // same extensions as Gitpod, should match /.gitpod.yml
+ "extensions": [
+ "vscjava.vscode-java-pack",
+ "editorconfig.editorconfig",
+ "dbaeumer.vscode-eslint",
+ "stylelint.vscode-stylelint",
+ "DavidAnson.vscode-markdownlint",
+ "ms-azuretools.vscode-docker",
+ "cweijan.vscode-database-client2",
+ "GitHub.vscode-pull-request-github"
+ ]
+ }
+ },
+ "portsAttributes": {
+ "4200": {
+ "label": "Hertzbeat Web",
+ "onAutoForward": "notify"
+ }
+ },
+ "postCreateCommand": "java -version"
+}
diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile
new file mode 100644
index 000000000..7bfd3167c
--- /dev/null
+++ b/.gitpod.Dockerfile
@@ -0,0 +1,7 @@
+FROM gitpod/workspace-full
+
+USER gitpod
+
+RUN bash -c ". /home/gitpod/.sdkman/bin/sdkman-init.sh && \
+ sdk install java 17.0.12-amzn && \
+ sdk default java 17.0.12-amzn"
diff --git a/.gitpod.yml b/.gitpod.yml
new file mode 100644
index 000000000..84e8df6d6
--- /dev/null
+++ b/.gitpod.yml
@@ -0,0 +1,41 @@
+image:
+ file: .gitpod.Dockerfile
+tasks:
+ - name: Setup
+ init: |
+ cp -r contrib/ide/vscode .vscode
+ mvn clean install
+ cd web-app
+ yarn install
+ command: |
+ gp sync-done setup
+ exit 0
+ - name: Run backend
+ command: |
+ gp sync-await setup
+
+ cd manager
+ mvn spring-boot:run
+ - name: Run frontend
+ command: |
+ gp sync-await setup
+
+ cd web-app
+ yarn start
+ openMode: split-right
+
+vscode:
+ extensions:
+ - vscjava.vscode-java-pack
+ - editorconfig.editorconfig
+ - dbaeumer.vscode-eslint
+ - stylelint.vscode-stylelint
+ - DavidAnson.vscode-markdownlint
+ - ms-azuretools.vscode-docker
+ - cweijan.vscode-database-client2
+ - GitHub.vscode-pull-request-github
+
+ports:
+ - port: 4200
+ name: Hertzbeat
+ onOpen: open-browser
diff --git a/.licenserc.yaml b/.licenserc.yaml
index 8eaea8457..4266e3e08 100644
--- a/.licenserc.yaml
+++ b/.licenserc.yaml
@@ -62,6 +62,8 @@ header:
- '.stylelintrc'
- '.prettierignore'
- '.prettierrc.js'
+ - '.gitpod.Dockerfile'
+ - '.gitpod.yml'
- 'karma.conf.js'
- 'proxy.conf.js'
- '.helmignore'
@@ -92,12 +94,12 @@ header:
- 'web-app/src/style.less'
- 'web-app/src/test.ts'
- 'web-app/src/typings.d.ts'
-
+
comment: on-failure
dependency:
files:
- pom.xml
- web-app/package.json
-
+
diff --git a/README.md b/README.md
index 5379709cb..f012545de 100644
--- a/README.md
+++ b/README.md
@@ -18,6 +18,7 @@
[](https://hub.docker.com/r/apache/hertzbeat)
[](https://artifacthub.io/packages/search?repo=hertzbeat)
[](https://www.youtube.com/channel/UCri75zfWX0GHqJFPENEbLow)
+[](https://gitpod.io/#https://github.com/apache/hertzbeat)
**Home: [hertzbeat.apache.org](https://hertzbeat.apache.org)**
**Email: <a href="mailto:[email protected]">Mail to
`[email protected]`</a> to subscribe mailing lists**
diff --git a/README_CN.md b/README_CN.md
index 0db4924b1..930d12851 100644
--- a/README_CN.md
+++ b/README_CN.md
@@ -18,6 +18,7 @@
[](https://hub.docker.com/r/apache/hertzbeat)
[](https://artifacthub.io/packages/search?repo=hertzbeat)
[](https://www.youtube.com/channel/UCri75zfWX0GHqJFPENEbLow)
+[](https://gitpod.io/#https://github.com/apache/hertzbeat)
**官网: [hertzbeat.apache.org](https://hertzbeat.apache.org)**
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]