R
Railwayβ€’2y ago
ferret

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
jr
jrβ€’2y ago
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
ferret
ferretβ€’2y ago
So, when railway detects a new commit for example, does it download the new repo and build the image using Nixpacks?
jr
jrβ€’2y ago
yup exactly. If Nixpacks is selected as the builder for the service then it will be used
ferret
ferretβ€’2y ago
Okay How is the container run? Like, is each app inside another container?
jr
jrβ€’2y ago
Yes and image is built for each app and deployed to our infrastructure
ferret
ferretβ€’2y ago
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
jr
jrβ€’2y ago
We have a custom orchestration engine that we have wrote. and np!
ferret
ferretβ€’2y ago
Oh okay awesome So do you like create a deployment for each new container image?
jr
jrβ€’2y ago
yes
ferret
ferretβ€’2y ago
Cool
nebula
nebulaβ€’2y ago
@ferret you can use docker in docker to build and publish an image i think as a k8s job
ferret
ferretβ€’2y ago
That's what I was thinking of doing