How to change OpenSSL version through nixpacks
How can I change OpenSSL version through nixpacks.toml ?
Project ID: 02153a9e-0961-4df0-973f-a3d3ded857f4
19 Replies
Project ID:
02153a9e-0961-4df0-973f-a3d3ded857f4
You might find these helpful:
- how do I set the nixpacks install command?
- How Can I Fix My Nixpacks Build?
- how do I force a build to use Nixpacks instead of Dockerfile
⚠️ experimental feature
Why are you looking to change the openssl version?
I am also interested in this. I've been trying for a few hours. In my case it is because of this: https://github.com/prisma/prisma/issues/16553#issuecomment-1353302617
GitHub
Support OpenSSL 3.0 for Alpine Linux · Issue #16553 · prisma/prisma
OpenSSL 3.0 is currently the default OpenSSL version in Alpine Linux 3.17 (see CHANGELOG). For Alpine Linux, Prisma only supports OpenSSL 1.X at this time. As a result, the following error is gener...
This doesn't happen with Nixpacks. You might be using a custom Dockerfile for umami?
We have seen this a few times since the official node docker image has been updated. You should be able to simply remove the
Dockerfile
at the root of the repo https://canary.discord.com/channels/713503345364697088/1052353682617942086/1053376235809554482
For this issue, are you trying to install an older Ruby version?It is not Umami, it is a personal project that uses Prisma, it does not have Dockerfile. I tried to deploy it but crashes because of Prisma, I thought it was that error.
project id?
Yes. I’m trying to install ruby 2.6.6
also what version of prisma?
845ec5e8-5758-4e22-8d65-c2cabba25c40 and prisma 4.4.0
I saw this PR https://github.com/railwayapp/nixpacks/pull/726 couldn’t we install openssl with nixpacks commands a la dockerfile fashion?
Yeah that PR isn't ideal at all and mainly a quick fix to unblock Ruby 2 users. I'm not sure what you mean by a la dockerfile fashion, but installing and using openssl 1 on ubuntu 22+ isn't super straightforward so going to take a bit more care in the solution
Got it
This issue is slightly different. It looks like you just need to run
prisma generate
before the build. Can you try changing your build script to prisma generate && remix build
I just try that, and failed. Returns the OpenSSL error from https://github.com/prisma/prisma/issues/16553#issuecomment-1353302617, check the build log