Comments (2)
The challenge is going to be getting network access, as you said. I don't thing that Spring Boot's build commands or pack
allow this. They both run your build inside a container, but there are no options I'm aware of to expose ports on those build containers.
You might be able to use a process similar to this one to run the buildpack in a VM or container that you create, thereby allowing you to expose ports. It's a bit of work though, so you'll have to determine if that's worth it for you.
I don't know if this would be feasible, but you should be able to docker ps
and docker exec
into the build container. Most of the time they are short-lived so this would be difficult, but with native image, the builds take a while so if you're quick you might be able to exec in and inspect over the CLI.
With Spring Boot, you can also build using native image tools locally. Again, it's a little setup work but you could use those instructions to build locally or in a VM/container and attach directly to the port.
Hope that helps!
from native-image.
Thanks @dmikusa-pivotal for your feedback.
I will have a look at your recommendations.
from native-image.
Related Issues (20)
- Support Jammy Jellyfish
- Spring Boot Native image builds with 22.2.0 are failing HOT 18
- Support native executables as input HOT 1
- Configure `--no-fallback` flag by default HOT 1
- Allow --exclude-config arguments to be specified inside jar HOT 4
- aws lambda runtime linking issue - /lib64/libc.so.6: version `GLIBC_2.3X' not found HOT 8
- Do not use the full path in generated process types
- detect.go does not parse values for .platform/env/BP_NATIVE_IMAGE correctly HOT 7
- Configure runtime augument for java native image HOT 7
- investigate new Native Image Bundles (NIB)
- Remove USE_NATIVE_IMAGE_JAVA_PLATFORM_MODULE_SYSTEM HOT 1
- debug symbols are dropped if user specify `-g` flag for native-image
- Implement source include/exclude source support
- ERROR: Please rebuild the executable with an appropriate setting of the -march option. HOT 1
- Support append BP_NATIVE_IMAGE_BUILD_ARGUMENTS to the end of command HOT 1
- Always builds a native-image event when explicitly disabled HOT 6
- Spring Boot Native Image Build has been failed HOT 5
- BP_NATIVE_IMAGE_BUILD_ARGUMENTS replaces arguments added by Datadog BP HOT 1
- Certain Native image artifacts are not copied to run image HOT 42
- Remove 'org.springframework.boot.loader.nio.file.NestedFileSystemProvider' for Spring Boot 3.2+ Applications HOT 16
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 native-image.