a year ago
When I built my project with nixpacks I could add different providers so I added python because my pre-deploy command depends on it, after some complications with my deployment I moved to a Dockerfile and the providers option isn't available anymore in the service settings.
Any guidance on this?
70 Replies
a year ago
61e8a6cb-cf14-46b3-b9c7-02bd72e95922
a year ago
You would need to have your Dockerfile install python
a year ago
<:salute:1137099685417451530>
a year ago
It's a multi-stage build, does it matter where I install python?
a year ago
the final stage
a year ago

a year ago
a year ago
huh, you are using bun, doesnt bun have native support for sqlite??
a year ago
the auth package uses better-sqlite
a year ago
and it isn't even supposed to use sqlite, it is doing weird thingys
a year ago
oof
a year ago
If I add the ?family=0 to the ioredis connect it instead of ENOTFOUND throws a TIMEDOUT
a year ago
it fails to connect to redis in the pre-deploy command
a year ago
it needs the auth.ts file on the pre-deploy command, I wonder if it copies it over since pre-deploys are ran in an isolated container
a year ago
what I'm guessing is that it doesn't find the auth.ts -> doesn't know it uses postgres instead of sqlite -> does these weird thingys and fail
a year ago
pre-deploy commands are ran in their own container, but it is the same container that will be ran for runtime, same variables, same file system, etc
a year ago
im going back to dockerfile
a year ago
(I was trying railpack and nixpacks again)
a year ago
😢

a year ago
lol
a year ago
do you know if it's possible to include make as an apt package in railpacks?
a year ago
https://railpack.com/config/file#root-configuration
I tried adding build-essentials and make to buildAptPackages with no success.
a year ago
do you need make during build or during deploy?
a year ago
the pre deploy commands needs python because it uses node-gyp to do some things, node gyp invokes the make command
a year ago
DEPLOY_APT_PACKAGES=make
a year ago
amazing
a year ago
gyp ERR! stack Error: not found: make
a year ago
also tried build-essential
a year ago
as stated by the logs, the commands build-essential, make and nodejs were installed
a year ago
a year ago
ssh and check
a year ago
the container is dead
a year ago
sleep infinite
a year ago

a year ago
sadge
a year ago
yeah
a year ago
install it again and see what happens
a year ago
within ssh
a year ago
ok
a year ago

a year ago
update needed?
a year ago
yep
a year ago
does railpack not do an update automatically?
a year ago
according to the build logs, no.
a year ago
so now you have make installed?
a year ago
yes
a year ago
well thats interesting
a year ago
indeed
a year ago
well, if u have any other suggestions… dockerfile didn't work, nixpacks didn't work next thing i'm gonna do is throw this project into the trash can
a year ago
why didnt the dockerfile work?
a year ago
redis refused to work
a year ago
ioredis and the normal redis client
a year ago
tried as a pre deploy command and as a command in the dockerfile before running the app
a year ago
even with the ?family=0 with ioredis, just extremely weird behavior
a year ago
is redis in the same env?
a year ago
yes
a year ago
i'll try to get some logs one sec
a year ago
there's no option to download it lol, this is the deployment id 234b321a-96bd-4ee6-b426-906edd0363f9
a year ago
pg pool connects but redis doesn't

a year ago
it keeps trying for a while then crashes
a year ago
this is the first command it runs bunx @better-auth/cli generate --y
a year ago
generates the schemas to apply to the db and redis for session storage
a year ago
gonna go to sleep, do you think this is worth opening an issue in the railpacks repo?
a year ago
drop something in <#1347035681305923634> - hopefully something that can reproduce the issue you had with make not being available
a year ago
one question since im still trying to figure out this issue
a year ago
the container that the pre-deploy commands run has the same dir structure as the main container?
a year ago
yes, it is most literally the same image ran
a year ago
I FIXED IT!
it was an issue with bun, changing the command to npx fixed it
a year ago
should've tried that sooner, thanks for the (emotional) support @Brody
a year ago
so running with node fixed it?