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 2784c8fa6 Optimize the execution efficiency of Gitpod tasks (#2422)
2784c8fa6 is described below
commit 2784c8fa6b04538d0640507695231c85033f84cd
Author: Kerwin Bryant <[email protected]>
AuthorDate: Wed Jul 31 19:28:31 2024 +0800
Optimize the execution efficiency of Gitpod tasks (#2422)
---
.gitpod.Dockerfile | 7 -------
.gitpod.yml | 46 +++++++++++++++++++++++++++++-----------------
2 files changed, 29 insertions(+), 24 deletions(-)
diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile
deleted file mode 100644
index 7bfd3167c..000000000
--- a/.gitpod.Dockerfile
+++ /dev/null
@@ -1,7 +0,0 @@
-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
index 84e8df6d6..c13fbe042 100644
--- a/.gitpod.yml
+++ b/.gitpod.yml
@@ -1,27 +1,33 @@
-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
+ before: cd manager
command: |
- gp sync-await setup
-
- cd manager
+ gp sync-await setup-backend
mvn spring-boot:run
+
- name: Run frontend
+ before: cd web-app
+ command: |
+ gp sync-await setup-frontend
+ yarn start --public-host "`gp url 4200`"
+ openMode: split-right
+
+ - name: Setup backend
+ init: |
+ sdk install java 17.0.11.fx-zulu < /dev/null
+ sdk default java 17.0.11.fx-zulu < /dev/null
+ mvn clean install -DskipTests
command: |
- gp sync-await setup
+ gp sync-done setup-backend
+ exit 0
- cd web-app
- yarn start
+ - name: Setup frontend
+ init: |
+ cd web-app && yarn install
+ command: |
+ gp sync-done setup-frontend
+ exit 0
openMode: split-right
vscode:
@@ -39,3 +45,9 @@ ports:
- port: 4200
name: Hertzbeat
onOpen: open-browser
+
+ - port: 1157
+ onOpen: ignore
+
+ - port: 1158
+ onOpen: ignore
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]