Do I need do install pip
I'm installing a custom package in railway.yaml but getting pip error - how can I fix it?
railway.toml:
logs:
Why is this not working?
19 Replies
Project ID:
c5ad221b-8b00-4b24-b8c9-eac5b00a9054
c5ad221b-8b00-4b24-b8c9-eac5b00a9054
If your project isn’t detected as a python project (doesn’t have a main.py or isn’t the primary language) then you’ll have to tell nixpacks to install python. Create a nixpacks.toml file and add “python3” to the providers section
Configuration File Reference | Nixpacks
App source + Nix packages + Docker = Image
make sure to include the “…” as well as that tells nixpacks to install the detected packages as well
@Charles_ for visibility ^
the real question is, why are you having your build clone a repo instead of letting railway's infra do that for you?
it seems that adding requirements.txt at project root fixed it - but I only need setup.py. Would that also work with nixpacks.toml if I remove requirements.txt?
@Brody would love to hear the better alternative - this does feel clunky
I'm actually installing 6 different private module which makes for a very long and awkward buildCommand
attach your repo to the service
That's what I've done for the main app, but it has deps on 6 private modules
Fair, this sounds like an absolute pain to do with nixpacks, i would highly recommend this be done with a Dockerfile
Thanks I will give it a go
@Brody just checking; are you aware of any issues/downsides from using supervisord inside Dockerfile for managing long-running processes?
I would have them split as two railway services but both processes need access to a shared volume which AFAIK isn't possible.
I use supervisor on a demanding php-fpm service on Railway and never had any issues with it.
nice, good to hear!
yeah it's totally fine, but personally, I much prefer parallel
far far simpler
https://github.com/railwayapp-templates/browserless/blob/main/scripts/start.sh
Thanks, how can I avoid this Dockerfile caching? This layers runs git clone & pip install on repo's I've made commits to
set a service variable
NO_CACHE
to 1
@Brody please send me friend request if you're interested in paid work (deploying docker-compose to Railway)
well I'm honestly just more curious as to what you want to deploy more than anything