Comments (5)
It appears that when compressing a simple Hello World program with upx, the program fails to run. Thus the problem is not related to the Spring Boot app or the upx compression level.
from dvdapplication.
Switching UPX version did not resolve the issue. Tried several different versions but the problem persisted.
from dvdapplication.
While direct compression of the produced executables has thus far proved unsuccessful, spring boot's maven plugin provides a built in option to enable compression through buildpacks.
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>3.0.5</version>
<configuration>
<imageName>ttomtsis/dvd-spring-server:latest</imageName>
<image>
<env>
<BP_NATIVE_IMAGE>true</BP_NATIVE_IMAGE>
<BP_BINARY_COMPRESSION_METHOD>upx</BP_BINARY_COMPRESSION_METHOD>
<BP_NATIVE_IMAGE_BUILD_ARGUMENTS>-H:IncludeResources="tls/myserver.p12"</BP_NATIVE_IMAGE_BUILD_ARGUMENTS>
</env>
</image>
</configuration>
</plugin>
from dvdapplication.
Added compression in native image 083a53a
from dvdapplication.
Since native image size is reasonably reduced without compormising performance, native executable compression for now won't be implemented.
from dvdapplication.
Related Issues (20)
- Integrate Knative to provide scaling HOT 1
- Improve Probes HOT 2
- Implement MySQL Operator HOT 4
- Add resource and health checks in containers HOT 1
- Improve Docker Images HOT 4
- Optimize Spring Boot Performance HOT 1
- Issue when locating .p12 keyfile HOT 3
- Convert python scripts to executables HOT 1
- Paketo buildpack does not include TLS cert in classpath HOT 1
- Implement database versioning and migration with Flyway
- Use Prometheus and Grafana for resource monitoring
- Add pagination HOT 1
- Add Swagger Documentation
- Implement JWT Bearer Authentication
- Create a new 'native' profile for use with native executables HOT 1
- Package application as a helm chart
- Refine exception handling
- Setup GitHub workflows for the repository
- Improve logging
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dvdapplication.