R
Railway2y ago
tooru

How to add Heroku buildpacks to my project?

I want to add ffmpeg and libopus.
86 Replies
Percy
Percy2y ago
Project ID: 02488d6b-8c14-4f63-a855-4a12942f0aef
Percy
Percy2y ago
You can specify what to install by using the NIXPACKS_PKGS environment variable, e.g. NIXPACKS_PKGS=ffmpeg libwebp imagemagick.
⚠️ experimental feature
tooru
tooruOP2y ago
nixpacks's documentation is scarce at best, so i'd rather use heroku buildpacks.
Adam
Adam2y ago
heroku buildpacks are not supported by railway. you can either use nixpacks or a dockerfile
tooru
tooruOP2y ago
okay how can I specify what nixpacks to install in a file? simplest solution
Finn
Finn2y ago
Use the env var NIXPACKS_PKGS or NIXPACKS_APT_PKGS
Adam
Adam2y ago
You can find packages here https://search.nixos.org/packages
tooru
tooruOP2y ago
no way to do it via a file?
Finn
Finn2y ago
You can use nixpacks.toml I think
tooru
tooruOP2y ago
alright
tooru
tooruOP2y ago
ah yes i was stuck here
Finn
Finn2y ago
Why
tooru
tooruOP2y ago
where can i see the list of all possible phases
Finn
Finn2y ago
Wdym
tooru
tooruOP2y ago
[phases.setup] what are other phases
Finn
Finn2y ago
You can look at the relevent providers 7gh Ugh
tooru
tooruOP2y ago
what are possible providers
Finn
Finn2y ago
Setup build start
tooru
tooruOP2y ago
i mean this
tooru
tooruOP2y ago
why the '...' what array am i extending to begin with
Finn
Finn2y ago
The ones that are auto detected
tooru
tooruOP2y ago
and what can i add? how does auto-detection work? with python at least
Finn
Finn2y ago
Bro, please just take some time to read the docs lol
tooru
tooruOP2y ago
so a "provider" is all these things?
Finn
Finn2y ago
Ye
tooru
tooruOP2y ago
i see, thanks
Finn
Finn2y ago
That's a good point tbh, maybe that should be renamed or have (providers) in brackets
tooru
tooruOP2y ago
is there a way to know what a basic barebone image contains? like glibc i need some basic unix tools to be present
Finn
Finn2y ago
You can built it locally and run the output container And exec onto that The base image is debian:bullseye-20220801-slim
tooru
tooruOP2y ago
thanks ill be closing the issue now
Finn
Finn2y ago
Sounds good. Enjoy!
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Adam
Adam2y ago
Not sure if you can do multiple packages as an env variable, but if you could they’d be separated by a comma
Adam
Adam2y ago
Try setting up a nixpacks config file https://nixpacks.com/docs/configuration/file
Configuration File Reference | Nixpacks
App source + Nix packages + Docker = Image
Adam
Adam2y ago
And no, Railway is not closing nixpacks @Alι_ Aryαɴ
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Adam
Adam2y ago
There are examples in the docs
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Adam
Adam2y ago
read those first, come here if you have any questions because you’re giving it instructions it can’t make sense of
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Adam
Adam2y ago
Filename is the name of the file, the context is what the file will be doing
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Adam
Adam2y ago
the context is separated into sections that tell different parts of nixpacks what to do the docs explain it all
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Adam
Adam2y ago
yes
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Adam
Adam2y ago
yes
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Adam
Adam2y ago
Not sure what you mean
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Adam
Adam2y ago
You’re sure it’s the exact same error? because that would mean that there’s no nixpack called libwebp that’s odd, I see it right here https://search.nixos.org/packages?channel=22.11&from=0&size=50&sort=relevance&type=packages&query=libwebp can you please see what happens if you remove libwebp and share the logs?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Adam
Adam2y ago
Are you using heroku buildpacks or nixpacks?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Adam
Adam2y ago
please send the full logs not just a screenshot
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Adam
Adam2y ago
You’ll just have to highlight and scroll through
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Adam
Adam2y ago
Yes, or paste it here
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Adam
Adam2y ago
That’s not the whole log is it? that’s very short what do you mean without nix buildpacks? You need to have nixpacks selected
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Adam
Adam2y ago
ah that’s what you meant
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Adam
Adam2y ago
yes, but I will need to see the entire logs for both you’ve only sent a portion of it
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Adam
Adam2y ago
No, there’s quite a bit above that
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Adam
Adam2y ago
Oh are these your deployment logs? I wanted to see your build logs
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Adam
Adam2y ago
I was under the impression that your builds were failing, not your deployments I think it’ll be best if I see a github repo first if it’s public
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Adam
Adam2y ago
on mobile atm, can’t open it
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Adam
Adam2y ago
I do not
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Adam
Adam2y ago
I don’t know what you mean by that
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Finn
Finn2y ago
No You can remove a deployment if that's what you were referring to
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Adam
Adam2y ago
you’ve been having errors for ffmpeg this whole time, nothing has changed you haven’t sent me your project so I don’t know what you expect me to do with your environment variables you’re also still sending deployment logs, not build logs
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Adam
Adam2y ago
If you’ve rewritten the entire project, I’m not going to be able to recreate the error additionally, I don’t know js or ts nor do I have any experience with whatsapp bots Your app is building, which means that Railway is doing its job. To me it looks like the package doing the conversion cannot find the ffmpeg executable. You’ll have to find a solution for that Turns out whatsapp bots are not allowed on Railway as they’re classified as user bots
Finn
Finn2y ago
Yea wierd.i thaught there was an api
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server