R
Railway5mo ago
Vorlon

Help Installing Linux Packages

I need to run these commands:
sudo apt-get update
sudo apt-get install libharfbuzz0b libfontconfig1 libfreetype6 libgl1-mesa-dev libglu1-mesa
sudo apt-get update
sudo apt-get install libharfbuzz0b libfontconfig1 libfreetype6 libgl1-mesa-dev libglu1-mesa
so I can use SkiaSharp for my project. Is there anything else I can do to get these packages, or is there a way to run these commands?
Solution:
A docker image is going to be your best bet. Just setup your image to download everything you need for the build and the entry point for the deployment command.
Jump to solution
33 Replies
Percy
Percy5mo ago
Project ID: N/A
Vorlon
VorlonOP5mo ago
N/A
Solution
Joshie
Joshie5mo ago
A docker image is going to be your best bet. Just setup your image to download everything you need for the build and the entry point for the deployment command.
Brody
Brody5mo ago
while i like dockerfiles more than the next guy, it would be easier for the end user to attempt this with nixpacks, and if that doesnt work then its dockerfile time. so lets attempt it with nixpacks, add this nixpacks.toml file to your project -
[phases.setup]
aptPkgs = ['...', 'libharfbuzz0b', 'libfontconfig1', 'libfreetype6', 'libgl1-mesa-dev', 'libglu1-mesa']
[phases.setup]
aptPkgs = ['...', 'libharfbuzz0b', 'libfontconfig1', 'libfreetype6', 'libgl1-mesa-dev', 'libglu1-mesa']
Joshie
Joshie5mo ago
Hmmm, actually, I do get what you mean here. Yea, if everything else was already working, just try a simple nixpacks config update. hehe, I was too focused on the fact that they wrote out the exact command they needed "RUN"
Vorlon
VorlonOP5mo ago
haha oops, I am not used to using config on this project lol my bad
Brody
Brody5mo ago
it was close, they'd need a -y flag to apt-get install too
Vorlon
VorlonOP5mo ago
hmm, this still did not fix my issue
Vorlon
VorlonOP5mo ago
it might not be in the build logs my project can deploy and parts of it work
Brody
Brody5mo ago
please send the build logs anyway
Vorlon
VorlonOP5mo ago
just not the part which uses SkiaSharp ok
Brody
Brody5mo ago
these are the deploy logs
Vorlon
VorlonOP5mo ago
indeed my bad
Brody
Brody5mo ago
Yep they are getting installed, but it still doesnt work, was worth a shot but we have to go with joshie's recommendation, you will need to write a Dockerfile
Vorlon
VorlonOP5mo ago
dang why does it always build with NIX packs and not the docker file?
Brody
Brody5mo ago
is your Dockerfile named Dockerfile?
Vorlon
VorlonOP5mo ago
yes
Brody
Brody5mo ago
is it located in the root of your project or the root according to your service settings?
Vorlon
VorlonOP5mo ago
yes
Brody
Brody5mo ago
build logs please
Brody
Brody5mo ago
are you able to share your repo?
Vorlon
VorlonOP5mo ago
uh yeah,
Vorlon
VorlonOP5mo ago
GitHub
GitHub - bob-el-bot/BobTheBot at railway-test
The discord bot for 🎲 RNG, 🖊️ quoting, 📜 fonts, 🔒 encryption, and ✨ more! - GitHub - bob-el-bot/BobTheBot at railway-test
Vorlon
VorlonOP5mo ago
this specific branch
Brody
Brody5mo ago
it is not
Vorlon
VorlonOP5mo ago
ah..... thanks very much for the help
Brody
Brody5mo ago
got it working?
Vorlon
VorlonOP5mo ago
yup
Brody
Brody5mo ago
awsome!
Brody
Brody5mo ago
please do not close threads
Want results from more Discord servers?
Add your server