Open samruddhikhandale opened 1 year ago
ℹ️ This dev config Works perfectly where user is available in image metadata👇
{
"image": "mcr.microsoft.com/devcontainers/base:jammy",
"features": {
"ghcr.io/devcontainers/features/azure-cli:1": {
"version": "latest",
"installBicep": "true"
}
}
}
We determine _REMOTE_USER_HOME
before any features run.
https://github.com/devcontainers/features/issues/570#issue-1750480909 mentions a similar issue while using the docker-in-docker
Feature.
I'm having the same issue. Using
The shell history install.sh
script logs the _REMOTE_USER
and _REMOTE_USER_HOME
variables, and the latter one is empty:
> [vscode dev_containers_target_stage 15/15] RUN chmod -R 0755 /tmp/dev-container-features/shell-history_5 && cd /tmp/dev-container-features/shell-history_5 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh:
0.118 ===========================================================================
0.118 Feature : Shell History
0.118 Description : Preserve shell history across dev container instances. Currently supports bash, zsh, and fish
0.118 Id : ghcr.io/stuartleeks/dev-container-features/shell-history
0.118 Version : 0.0.3
0.118 Documentation :
0.118 Options :
0.118
0.118 ===========================================================================
0.118 Activating feature 'shell-history'
0.118 User: vscode User home:
0.118 ***********************************************************************************
0.118 *** Require _REMOTE_USER and _REMOTE_USER_HOME to be set (by dev container CLI) ***
0.118 ***********************************************************************************
0.119 ERROR: Feature "Shell History" (ghcr.io/stuartleeks/dev-container-features/shell-history) failed to install!
@cgrothaus I'm getting the same issue now, did you find a workaround by any chance?
@s-froghyar Sadly, no 🤷 .
Hi! FYI I'm trying to solve this issue, currently testing against the broken scenarios stated here and on the docker-in-docker feature
Hi @cgrothaus and @prulloac, I ran into this while setting up infrastructure as code with Bicep for an Azure deployment.
Did you by any chance make progress on this?
Reported in https://github.com/devcontainers/features/issues/336#issuecomment-1360027876
While executing the
azure-cli
Feature, it logs the following values (added loggings in install.sh)👇Expected : The value of
_REMOTE_USER_HOME
should have been/home/vscode