Question About Railway & Nixpacks
Hey all, I think nixpacks is super interesting and I'm looking to integrate it in my own project, but I'm confused about how I want to implement it. I'm working on my own hosting platform for fun.
I'm running a Kubernetes cluster that has all the microservices for the platform. I have a deployment microservice where I'd like to build a Docker image using nixpacks and run it. I was curious about how Railway integrated nixpacks into the deployment pipeline and was wondering if anyone could share some insight.
Thanks in advance π
12 Replies
Hey π
What specifically did you want to know about? There is nothing that special about how Railway uses Nixpacks. Just passing a few different CLI flags based on user preferences
So, when railway detects a new commit for example, does it download the new repo and build the image using Nixpacks?
yup exactly. If Nixpacks is selected as the builder for the service then it will be used
Okay
How is the container run?
Like, is each app inside another container?
Yes and image is built for each app and deployed to our infrastructure
How do you deploy the new image onto your infrastructure? Do you guys use a container orchestration platform?
Thanks for answering all my questions btw
We have a custom orchestration engine that we have wrote. and np!
Oh okay awesome
So do you like create a deployment for each new container image?
yes
Cool
@ferret you can use docker in docker to build and publish an image i think
as a k8s job
That's what I was thinking of doing