pms-docker icon indicating copy to clipboard operation
pms-docker copied to clipboard

Maybe use of Debian image would be better because lighter ?

Open tigerblue77 opened this issue 4 years ago • 5 comments

Just an idea... Don't hesitate to tell me if I'm wrong and why. Also, I removed "unrar" package as it is not available on default Debian repositories ; if it was necessary (I didn't see where) but "tar" command could be use without needing any package installation.

tigerblue77 avatar Oct 12 '21 14:10 tigerblue77

Don't hesitate to tell me if I'm wrong and why.

This change is unlikely to go forward because if we change the base, most likely it will be to alpine (something we have investigated but it's in a queue behind a bunch of other things).

I removed "unrar" package as it is not available on default Debian repositories ; if it was necessary (I didn't see where) but "tar" command could be use without needing any package installation.

See #33 (can be found by using blame on the Dockerfile and examining the commit. It links to that PR).

gbooker avatar Oct 13 '21 13:10 gbooker

Ok, thanks for your answer ! It could be a temporary improvment before switching to Alpine. I saw that unrar could be installed on Debian by activating non-free packages : https://packages.debian.org/bullseye/unrar Have a nice day !

tigerblue77 avatar Oct 13 '21 13:10 tigerblue77

Hi,

Just a quick question: Why are you using apt-get instead of apt? Is it just preference, or? I dont see the reason to use the old/outdated apt-get anymore, specially on fresh distros.

Re4zOon avatar Oct 20 '22 10:10 Re4zOon

Hi,

Just a quick question: Why are you using apt-get instead of apt? Is it just preference, or? I dont see the reason to use the old/outdated apt-get anymore, specially on fresh distros.

Hello, "old/outdated apt-get" ? Sorry but I think you're wrong. apt is using apt-get and is just the recommended command for interactive use by administrators, not for use in shell scripts. That's why, when you use apt in a bash script you get the following message :

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

tigerblue77 avatar Oct 20 '22 10:10 tigerblue77

Sorry, you are right. I never really looked into the differences and whatnot. I was coming from ansible, that has a force option to use apt-get, instead of apt. I guess the ansible package actually prefers apt for some reason. In any case, I've yet to run into trouble.

Re4zOon avatar Oct 20 '22 10:10 Re4zOon