Skip to content

Commit

Permalink
Merge pull request #1 from liangyuanpeng/init_project_springboot
Browse files Browse the repository at this point in the history
init project of lank8s.cn with springboot
  • Loading branch information
liangyuanpeng authored Dec 17, 2023
2 parents d868efa + d52abef commit a6a0977
Show file tree
Hide file tree
Showing 49 changed files with 2,561 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/build_native_java_springboot.yml
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"
38 changes: 38 additions & 0 deletions .github/workflows/compile_java_springboot.yml
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
5 changes: 4 additions & 1 deletion README.md
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 或文档之类的任何事情.
35 changes: 35 additions & 0 deletions java/springboot/.gitignore
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/
3 changes: 3 additions & 0 deletions java/springboot/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/home/oem/server/scripts/repos

mvn package -Pnative -DskipTests
7 changes: 7 additions & 0 deletions java/springboot/dev/docker-compose.yml
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
Loading

0 comments on commit a6a0977

Please sign in to comment.