Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nixpacks config 'onlyIncludeFiles' should support custom destination paths #1010

Open
jaiiye opened this issue Nov 17, 2023 · 2 comments
Open
Labels

Comments

@jaiiye
Copy link

jaiiye commented Nov 17, 2023

Feature request

Starting with Spring Boot 2.3.0, a JAR file built with the Spring Boot Maven or Gradle plugin includes layer information in the JAR file. This layer information separates parts of the application based on how likely they are to change between application builds. This can be used to make Docker image layers even more efficient.

But layering has special requirements for directory structure,Here is an example of building a docker
Dockerfiles
There is a method mentioned here #685 , it is not currently supported.

I use a similar configuration,expect it to work:
`

[phases.build]
cmds = ["...", "java -Djarmode=layertools -jar target/*-exec.jar extract"]
[start]
runImage = "eclipse-temurin:17-jdk-alpine"
onlyIncludeFiles = [
{ from = './dependencies/', to = './' },
{ from = './snapshot-dependencies/', to = './' },
{ from = './spring-boot-loader/', to = './' },
{ from = './application/', to = './' }
]
cmd = "java $JAVA_OPTS org.springframework.boot.loader.JarLauncher"
`

Motivation

No response

Contribution

No response

Copy link
Contributor

Hello, @jaiiye! Thanks for your submission.

Our team will respond soon. If you need more immediate help, try our Forum or our Discord. Thanks!

@zuchka zuchka added help wanted Extra attention is needed feature request labels Nov 17, 2023
@zuchka
Copy link
Contributor

zuchka commented Nov 17, 2023

hi @jaiiye, thanks so much for making this issue. I've talked to the team and we've gone ahead and labelled this as a feature request. We are hoping some of our Java/Spring Boot community members might want to tackle this. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants