Closed frankpengau closed 1 year ago
Troubleshooting branch for full logs: https://github.com/frankpengau/vscode-devcontainer-localstack/tree/localstack-troubleshooting-2023-05-08
@frankpengau thanks for reporting! The problem was indeed installing python twice. The reason localstack installs its own python because localstack is not compatible yet with python 3.11 so the way of explicitly installing python 3.10 was chosen. However there was problem in the overriding mechanism when installing after a pre-installed python feature. The most appropriate solution was to not override the default python installation at all. Instead python 3.10 is now installed side by side with whatever the current python version happens to be (for it to serve only as a localstack launchpad.)
Latest localstack version ghcr.io/devcontainers-contrib/features/localstack:2.0.20
should solve this
Also a test was added to check this scenario in the future
Feature id and version
"ghcr.io/devcontainers-contrib/features/localstack:2.0.19"
Devcontainer base Image
"mcr.microsoft.com/devcontainers/base:jammy"
What happened?
When using python and localstack feature together, it seems to fail when building the devcontainer.
devcontainer.json
:However, not that big of an issue, since localstack includes python, but just thought to point it out since I noticed the bug.
Relevant log output