forked from apache/shenyu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support
Contribute with Gitpod
. (apache#5610)
Co-authored-by: xiaoyu <[email protected]>
- Loading branch information
Showing
5 changed files
with
96 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"name": "Shenyu 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": { | ||
"8000": { | ||
"label": "Shenyu Admin", | ||
"onAutoForward": "notify" | ||
} | ||
}, | ||
"postCreateCommand": "java -version" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
additionalRepositories: | ||
- url: https://github.com/apache/shenyu-dashboard.git | ||
checkoutLocation: frontend | ||
|
||
tasks: | ||
|
||
- name: Run backend | ||
before: cd ./shenyu-admin | ||
command: | | ||
gp sync-await setup-backend | ||
mvn spring-boot:run | ||
- name: Run frontend | ||
before: cd ../frontend | ||
command: | | ||
gp sync-await setup-frontend && gp ports await 9095 | ||
npm start | ||
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-done setup-backend | ||
exit 0 | ||
- name: Setup frontend | ||
before: cd ../frontend | ||
init: | | ||
npm install | ||
command: | | ||
gp sync-done setup-frontend | ||
exit 0 | ||
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: 9095 | ||
onOpen: ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters