GraalVM
Hi, is it possible to build a graalvm image in nixpacks? https://github.com/railwayapp/nixpacks/issues/961
GitHub
GraalVM Nixpacks · Issue #961 · railwayapp/nixpacks
Feature request GraalVM has gained significant popularity as a high-performance, polyglot runtime for various languages. To support the seamless integration of GraalVM into the Cloud Native ecosyst...
34 Replies
Project ID:
N/A
N/A
or is it possible to directly deploy my docker image with a native compiled artifact inside?
you can deploy a pre built docker image as long as it's public and hosted on dockerhub or github packages, or you can let railway build an image with your dockerfile
pre built docker image would be great - how is this possible?
well first, do you want to even deploy it as a new project or do you have a project and service you want to add its source to?
Deploy from a repo or upload from the cli with a dockerfile named Dockerfile in the root folder
my understanding is that they're talking about an already built docker image
give me a sec, i've found the docker deploy section
please clarify for us, are you talking about a pre built docker image or are you talking about a dockerfile?
pre built docker image
okay please answer
i want to add a new service with that docker image
this could be a workaround to have a native spring image in railway
do you already have a project I'm railway where you want to deploy this image?
yeah
do you already have a service that you want to deploy the image to?
i have created this service now with this id: 73369300-cb71-4e9b-b488-59a5bb27f3b4
do you have all the service variables setup?
have you generated a domain?
nope my own domain
perfect
do you use a database?
no
okay then go to the service settings and add the docker image under the source settings
this isnt solved yet
why does it uses so much memory - 73369300-cb71-4e9b-b488-59a5bb27f3b4 - this is my serive id
I don't work for railway, those ids don't do anything for me
how much memory is so much?
260 MB - native images use 50
doesn't seem like all that much tbh
could it be the railway os... :/
are you deploying from an image or from a repo?
image
then railway deployed your image as is
can you access the app from your domain?
found the problem
awsome
memory consumption before vs after
now my microservices are using 40mb each and start in 0.099seconds