-
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.
Merge pull request #1 from liangyuanpeng/init_project_springboot
init project of lank8s.cn with springboot
- Loading branch information
Showing
49 changed files
with
2,561 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,29 @@ | ||
name: Build container image with native | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 17 | ||
distribution: 'temurin' | ||
cache: 'maven' | ||
|
||
- name: Build native for springboot | ||
run: | | ||
echo "build native image for springboot" | ||
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: compile | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- java/springboot/** | ||
pull_request: | ||
paths: | ||
- java/springboot/** | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
compile: | ||
strategy: | ||
matrix: | ||
java-version: | ||
- 17 | ||
- 21 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up java | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: "${{ matrix.java-version }}" | ||
distribution: 'temurin' | ||
cache: 'maven' | ||
|
||
- name: compile and test | ||
run: | | ||
echo "compile and test" | ||
cd java/springboot | ||
mvn test | ||
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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
# lank8s.cn | ||
lank8s.cn | ||
|
||
registry.lank8s.cn 和 gcr.lank8s.cn 实际上使用的是 Go 开发的一个服务,但由于耦合了太多我个人其他的内容,因此目前还不太适合开源,后续有时间的话整理好后可以准备开源的事情. | ||
|
||
由于 lank8s.cn 服务实际上就是一个路由的服务,也就是将拉取容器镜像的请求 302 到真正存储数据的地方,因此之前在闲暇之余我也有尝试使用 java 和 Rust 语言来实现其中的功能,目前可以将之前写的 Java 和 Rust 代码作为实验项目逐步开源出来,有兴趣的欢迎参与贡献!包括但不限于:帮助测试代码,帮助实现功能,帮助完善项目 CI 或文档之类的任何事情. |
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,35 @@ | ||
HELP.md | ||
target/ | ||
!.mvn/wrapper/maven-wrapper.jar | ||
!**/src/main/**/target/ | ||
!**/src/test/**/target/ | ||
|
||
!cache | ||
|
||
### STS ### | ||
.apt_generated | ||
.classpath | ||
.factorypath | ||
.project | ||
.settings | ||
.springBeans | ||
.sts4-cache | ||
|
||
### IntelliJ IDEA ### | ||
.idea | ||
*.iws | ||
*.iml | ||
*.ipr | ||
|
||
### NetBeans ### | ||
/nbproject/private/ | ||
/nbbuild/ | ||
/dist/ | ||
/nbdist/ | ||
/.nb-gradle/ | ||
build/ | ||
!**/src/main/**/build/ | ||
!**/src/test/**/build/ | ||
|
||
### VS Code ### | ||
.vscode/ |
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,3 @@ | ||
/home/oem/server/scripts/repos | ||
|
||
mvn package -Pnative -DskipTests |
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,7 @@ | ||
version: "3.7" | ||
|
||
services: | ||
|
||
redis: | ||
image: redis:7.0.7 | ||
restart: always |
Oops, something went wrong.