Skip to content

Commit

Permalink
init project of lank8s.cn with springboot
Browse files Browse the repository at this point in the history
  • Loading branch information
liangyuanpeng committed Dec 10, 2023
1 parent d868efa commit 5ffbb32
Show file tree
Hide file tree
Showing 48 changed files with 2,541 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build_native.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build container image with native

on:
push:
branches: [ main ]
pull_request:

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"
26 changes: 26 additions & 0 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: compile

on:
push:
branches: [ main ]
pull_request:

jobs:
compile:
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: compile and test
run: |
echo "compile and test"
cd java/springboot
mvn test
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 5ffbb32

Please sign in to comment.