86 Replies
Project ID:
02488d6b-8c14-4f63-a855-4a12942f0aef
You can specify what to install by using the NIXPACKS_PKGS environment variable, e.g. NIXPACKS_PKGS=ffmpeg libwebp imagemagick.
⚠️ experimental feature
nixpacks's documentation is scarce at best, so i'd rather use heroku buildpacks.
heroku buildpacks are not supported by railway. you can either use nixpacks or a dockerfile
okay how can I specify what nixpacks to install in a file?
simplest solution
Use the env var NIXPACKS_PKGS or NIXPACKS_APT_PKGS
You can find packages here
https://search.nixos.org/packages
no way to do it via a file?
You can use nixpacks.toml I think
alright
Configuration File Reference | Nixpacks
App source + Nix packages + Docker = Image
ah yes i was stuck here
Why
where can i see the list of all possible phases
Wdym
[phases.setup]
what are other phases
You can look at the relevent providers
7gh
Ugh
what are possible providers
Setup build start
i mean this
why the
'...'
what array am i extending to begin withThe ones that are auto detected
and what can i add?
how does auto-detection work?
with python at least
Bro, please just take some time to read the docs lol
so a "provider" is all these things?
Ye
i see, thanks
That's a good point tbh, maybe that should be renamed or have (providers) in brackets
is there a way to know what a basic barebone image contains?
like glibc
i need some basic unix tools
to be present
You can built it locally and run the output container
And exec onto that
The base image is
debian:bullseye-20220801-slim
thanks
ill be closing the issue now
Sounds good. Enjoy!
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Not sure if you can do multiple packages as an env variable, but if you could they’d be separated by a comma
Try setting up a nixpacks config file
https://nixpacks.com/docs/configuration/file
Configuration File Reference | Nixpacks
App source + Nix packages + Docker = Image
And no, Railway is not closing nixpacks @Alι_ Aryαɴ
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
There are examples in the docs
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
read those first, come here if you have any questions
because you’re giving it instructions it can’t make sense of
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Filename is the name of the file, the context is what the file will be doing
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
the context is separated into sections that tell different parts of nixpacks what to do
the docs explain it all
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yes
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yes
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Not sure what you mean
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
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•2y ago
Message Not Public
Sign In & Join Server To View
Are you using heroku buildpacks or nixpacks?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
please send the full logs
not just a screenshot
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
You’ll just have to highlight and scroll through
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Yes, or paste it here
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
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•2y ago
Message Not Public
Sign In & Join Server To View
ah that’s what you meant
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yes, but I will need to see the entire logs for both
you’ve only sent a portion of it
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
No, there’s quite a bit above that
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Oh are these your deployment logs? I wanted to see your build logs
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
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•2y ago
Message Not Public
Sign In & Join Server To View
on mobile atm, can’t open it
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I do not
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I don’t know what you mean by that
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
No
You can remove a deployment if that's what you were referring to
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
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•2y ago
Message Not Public
Sign In & Join Server To View
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
Yea wierd.i thaught there was an api
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View