-
Couldn't load subscription status.
- Fork 1.4k
Remove libssl fixed version #260
Conversation
|
Also can we remove some other dependencies seems that we are installing openjdk etc..? |
|
@bhack These are common scripts that layer in the most common utilities and things VS Code extensions may need. There's no requirement that a definition use these scripts but, when included, most extensions should have their needed dependencies covered. It also installs a few apt-get dependencies that make typical CLI install instructions work for those extending the Dockerfiles. The thing that drives the largest dependency graph is actually Java / openjdk is not automatically installed to my knowledge. Python is present since this is an OS dependency for many tools (and again is not explicitly installed). If I recall correctly,
|
|
Ok, thanks probably was another layer to introduce Jdk in my test. |
|
This installs 1.0.x (if available in the distro) and 1.1. Is there a problem that installing 1.1 is causing? What advantage does removing it provide? |
|
It conflicts with this condition management https://github.com/microsoft/vscode-dev-containers/blob/master/script-library/common-debian.sh#L54. |
|
Debian 10 dropped libssl1.0.x. Debian 9 has libssl1.0.2. Ubuntu 18.04 and 16.04 have libssl1.0.0. All three include libssl1.1 libssl1.1 is not backwards compatible to libssl1.0, so both need to be on disk in some cases. That's why they're peer packages. |
|
@Chuxel so how you are going to support 16.04 in https://github.com/microsoft/vscode-dev-containers/blob/master/script-library/common-debian.sh#L53 |
|
I meant have you seen my previous libssl packages list in 16.04? |
|
|
|
Ah, that's a separate issue. Nothing that uses the script right now uses Ubuntu 16.04. That said, we could make the installation of 1.1 conditional like libssl1.0.x to resolve that. |
|
Do you like |
|
Can we use |
|
@bhack There have been problems we've seen in the past with not being specific here particularly if someone adds a backport to install something. This code was introduced to mitigate that problem. The check is simple and has avoided any issues related to it since. This should do it. if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then
apt-get -y install --no-install-recommends libssl1.1
fi |
|
Do you like now? |
|
LGTM! |
No description provided.