-
-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dockerfile improvements #481
Conversation
The unifi package does not depend on it, `git grep jsvc` does not return a match, this is the only binary the jsvc package provides, and jsvc pulls openjdk-jre-11 while the rest of the code switched to 17 Signed-off-by: Christophe Fergeau <[email protected]>
The unifi package has a dependency on openjdk-17-jre-headless, not on openjdk-17-jdk-headless, no need to install the full jdk Together with the removal of jsvc, this reduces the image size by about 10% (tested with an x86_64 local build, 816 MB -> 737 MB) Signed-off-by: Christophe Fergeau <[email protected]>
Running apt-get upgrade -y will ensure the latest security updates are installed in the image. Signed-off-by: Christophe Fergeau <[email protected]>
I'm not aware there is one? If so, please let me know what is going on, and let's fix it in the base image. Upgrading packages on this level is also pretty inefficient.
You've removed I don't think that is correct? Can you provide the reasoning for this removal and where I can information on this otherwise?
I was not aware this was a problem in this repo? Could you clarify where and why this is an issue? |
Running
which is a fairly large set of packages. #481 (comment) has more details why I could not find a better base image to use instead. Or maybe official addon builds are using automatically built base image or something like this, and not |
I've added some reasoning in the commit log:
"does not depend on it" in the sense of "the unifi package does not have a dpkg/apt dependency for it" |
Not a huge issue if there's a bot automatically updating the repo, but for example this PR is not buildable because
|
I've looked closer at this script, for unifi 8.x it has:
and jsvc installation is only done for openjdk-8, not for newer openjdk versions:
I also found https://community.ui.com/questions/New-UniFi-Controller-Installation-Issues-Ubuntu-18-04/a4a3b308-0ed4-4a4a-b54d-e0b59f9e4661 which indicates that at some point in the past, the unifi debian package had a requirement the jsvc package: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @cfergeau 👍
Proposed Changes
This PR does various improvements to the Dockerfile:
improve the way package version are specified in apt-get install so that this line does not have to be updated every time one of these packages is updatedRelated Issues