This repository was archived by the owner on Jan 12, 2025. It is now read-only.
[Bug]: elixir-asdf feature installation fails on Debian base images due to installing Ubuntu specific apt packages #520
Labels
bug
Something isn't working
Feature id and version
ghcr.io/devcontainers-contrib/features/elixir-asdf:2
Devcontainer base Image
mcr.microsoft.com/devcontainers/base:debian
What happened?
Summary
Installation of
elixir-asdf
feature fails on a Debian base image.Reason: it wants to install Ubuntu specific apt packages.
Details
This is the relevant line from the log output:
The command 'apt-get install -y --no-install-recommends build-essential autoconf m4 libncurses5-dev libwxgtk3.0-gtk3-dev libwxgtk-webview3.0-gtk3-dev libgl1-mesa-dev libglu1-mesa-dev libpng-dev libssh-dev unixodbc-dev xsltproc fop libxml2-utils libncurses-dev openjdk-11-jdk procps' failed. error: Return Code: 100.
When I execute that apt command manually in a shell inside a fresh dev container, I get this output:
So, the offending packages are
I searched around a bit:
From that output, I guess the relevant package names on Debian 12 are
Further steps
I don't know how to proceed best from here. I see at least two options.
1. Make the apt package names distro (and version) specific
This means to check whether we are on Ubuntu or on Debian. It also needs to take the version into account, as the package names are again different on Debian 11, for example.
Also, the current
install.sh
does not take Alpine base images into account, but that's another story.2. Omit wxWidgets and Java
This means to forgo installing these packages automatically. After all, they are marginal aspects IMHO.
It could be stated in the feature README that if you want to compile Erlang with wX or Java bindings, you have to add those packages to your Dockerfile.
Relevant log output
The text was updated successfully, but these errors were encountered: