Skip to content

Commit

Permalink
Revert "fix: try to fix packaging"
Browse files Browse the repository at this point in the history
This reverts commit 920dcc7.
  • Loading branch information
bayang committed Apr 20, 2024
1 parent 920dcc7 commit 6f019ed
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,17 @@ tasks.getByName<Jar>("jar") {
enabled = false
}

// unpack Spring Boot's fat jar for better Docker image layering
tasks.register<JavaExec>("unpack") {
dependsOn(tasks.bootJar)
classpath = files(tasks.bootJar)
jvmArgs = listOf("-Djarmode=layertools")
args = "extract --destination ${layout.buildDirectory.get()}/dependency".split(" ")
doFirst {
delete("${layout.buildDirectory.get()}/dependency")
}
}

node {
nodeProjectDir.set(file("${project.projectDir}/src/jelu-ui"))
version.set("18.18.2")
Expand Down
3 changes: 3 additions & 0 deletions ci/prepare-dockerhub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

source "$(dirname "$0")/docker-common.sh" $1 $2

# Unpack fat jar
./gradlew unpack

# Build docker images (no push)
docker buildx build \
--platform $PLATFORMS \
Expand Down

0 comments on commit 6f019ed

Please sign in to comment.