-
Notifications
You must be signed in to change notification settings - Fork 15
Segmentation fault when running angularj in docker container #29
Comments
Hey I also encountered the same warning on several native host systems. As you mentioned the crash is not relatable to lib musl nor glibc (Alpine or not Alpine) - I guess it happens somewhere in the J2V8 library. As always: Wild guessing without a stacktrace ;) I am not satisfied with the whole J2V8 solution so I wrote a TCP based solution in the last days. TCP and gRPC are now Angular official ways to interact with Angular Universal, so this is the way to go/the future proof way. I pushed a first runnable version that needs some further love (Better documentation, support for lazy modules and better Node.js error handling). Is it possible for you to give it a try? I would also be interested in a Docker image (Image with Java 8+ and Node.js). You can find more information in the |
Sorry for the delay, new year and such. So I solved the issue by building an imagine with the right binaries for j2v8 built for the alpine image.
I'll be happy to try the TCP version, but your 0.0.4-SNAPSHOT does not seem to be available on maven, unless I missed some definition for a snapshot repo in the examples. For reference, here is the dockerfile for the alpine image I'm using. I don't know if this is the right or best way of doing it, but I got sick of things so just left it when it started working.
|
Ah, glad to hear that. Where you able to figure out the exact reason like for example some JVM binary related issue or so? As you mentioned you have to add the OSS Sonatype snapshot repository. Here is a full Maven example:
Keep in mind that your Docker image also needs a Node.js binary to start the Node.js mini app with the TCP server socket. You can find a working Linux-ish Java configuraiton example in the |
Hi
I'm trying to run my working spring-boot app in a docker container, but every time I run it, i get something similar to the below logs
I've tried various base images, including openJDK 8u181 both alpine or non alpine, also openJDK 11 and tried tarent/openjdk-alpine-j2v8. It works when running the jar directly on my windows machine, but I just cant get it running in a docker container on a linux box.
Is there any know issues/solutions for this?
The text was updated successfully, but these errors were encountered: