Open symplrdudley opened 1 month ago
Originally posted here: https://github.com/devcontainers-contrib/features/issues/593
I'll take a look into adding support for alpine to pipx-package
For now, if you are okay with using Ubuntu (or Debian), you can install ansible with ghcr.io/devcontainers-extra/features/ansible
(instead of unmaintained ghcr.io/devcontainers-contrib/features/ansible
).
Here's a slightly modified devcontainer.json
(Alpine -> Ubuntu + ansible from devcontainers-extra/features) which worked for me:
{
"name": "SreAnsible",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"customizations": {
"vscode": {
"extensions": [
"ms-azuretools.vscode-docker",
"hashicorp.terraform",
"ms-python.python",
"ms-python.debugpy",
"ms-python.vscode-pylance",
"redhat.vscode-yaml",
"DavidAnson.vscode-markdownlint",
"ms-vscode.makefile-tools"
]
}
},
"features": {
"ghcr.io/devcontainers/features/aws-cli:1": {},
"ghcr.io/devcontainers/features/azure-cli:1": {},
"ghcr.io/devcontainers-extra/features/ansible:2": {},
"ghcr.io/hspaans/devcontainer-features/ansible-lint:1": {},
"ghcr.io/devcontainers/features/git:1": {}
}
}
Feature id and version
ghcr.io/devcontainers-extra/features/pipx-package:1.1.7
Devcontainer base Image
docker.io/library/alpine:latest
What happened?
when attempting to build an image with Alpine as the base and using these features, the pipx-package fails because it is only written for Ubuntu commands.
Then when using in Ubuntu I receive the following error:
Relevant log output
Relevant log output
No response