devcontainers-contrib / features

🐳 Extra add-in features for Devcontainers and GitHub Codespaces
MIT License
246 stars 128 forks source link

Bug: Erlang feature works on only some base images, fails on others #476

Open danielbraun89 opened 1 year ago

danielbraun89 commented 1 year ago

Feature id and version

erlang-asdf

Devcontainer base Image

several

What happened?

ok images:

bad images:

Relevant log output

No response

danielbraun89 commented 1 year ago

debian:bullseye bug has been pin pointed to the following problem:

1. asdf-erlang is using kerl in order to install erlang

  1. kerl is using ps on multiple occasions
  2. ps is a product of the procps apt-get package, which is available at mcr.microsoft.com/devcontainers/base:bullseye but is missing from debian:bullseye

The solution is to install procps as a prerequisite

Other problems that made debugging this issue especially difficult:

  1. For some dumb reason, asdf-erlang purposely hides any output of the kerl installation subscript .
  2. asdf-erlang doesnt clean kerl's otp_installations file, therefore further installation attempts after first failure will trigger kerl's already registered error. There is no way to recover from this other than manually delete this file. A simillar with bug with different circumstances already "closed"
evilhamsterman commented 1 month ago

This project is not associated with the devcontainer project and appears to have been abandoned https://github.com/devcontainers-contrib/features/issues/628 . The official project has removed all devcontainer-contrib features from their listing. https://github.com/devcontainers/devcontainers.github.io/issues/451. There is a fork that is being worked on to update and maintain the features https://github.com/devcontainers-extra/features