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