Open dliberatore-th opened 2 years ago
Your devcontainer.json appears to list "features"
, try removing that and check if it works.
"features"
currently only support Debian-based distros. You can still install additional tools using your own Dockerfile and you can add VS Code extensions and settings under "customizations"
."vscode"
.
Thanks. Removing the "features"
section does get the container up and running without that error message. Reconstructing some of what that does was a little bit of an exercise but I think I managed ok.
I'm using script-library/common-redhat.sh
from the repo vscode-dev-containers
instead of the usual.
Additional tools are being installed the traditional way rather, via RUN
statements at the end of .devcontainer/Dockerfile
.
yeah..this is a problem. features does not support yum or dnf, the latter is which i use for amazon images
My company's base container is based off Amazon Linux 2. The Dockerfile starts with
FROM amazonlinux:2
. This is roughly CentOS 7, so it's Red Hat based and uses yum instead of apt. Dnf is not available. To reduce friction, I want our devs to be able to use .devcontainer so they can test and debug their code in an environment similar to the runtime environment.Currently, when I set up .devcontainer/Dockerfile to use this, it fails as follows. I've extracted the most relevant looking section. Apologies for the horizontal wrap/cutoff, that's what the file really contains.
The most relevant looking portion is:
Features support currently requires a Debian/Ubuntu-based image.
I don't mind rigging up the pieces here, I just want my team to have the ability to debug inside a standard container so we can get out of "works on my machine/doesn't work in CI" territory.
One solution would be to have an official way to use this distro. Another solution would be to provide an override for install.sh so I can rewrite it as it may pertain to my specific container. It's fine if that's unsupported with a big scary warning.
In short, my feature request is the option to use amazonlinux:2 for a base image even if I have to do extra work.