Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/vcpkg.io/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ install() {
git clone https://github.com/microsoft/vcpkg "$vcpkgRoot"
"$vcpkgRoot/bootstrap-vcpkg.sh" -disableMetrics
ln -s "$vcpkgRoot/vcpkg" /usr/local/bin/vcpkg

if [ ${_REMOTE_USER} != "root" ]; then
groupadd vcpkg
chown -R root:vcpkg $vcpkgRoot
chmod g+w $vcpkgRoot
usermod -aG vcpkg ${_REMOTE_USER}
fi
}
echo_banner "devcontainer.community"
echo "Installing $name..."
Expand Down
9 changes: 9 additions & 0 deletions test/vcpkg.io/install_with_remote_user.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

set -e

source dev-container-features-test-lib

check "install simple package with remote user" bash -c "vcpkg install vcpkg-cmake"

reportResults
9 changes: 9 additions & 0 deletions test/vcpkg.io/scenarios.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"install_with_remote_user": {
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"remoteUser": "vscode",
"features": {
"vcpkg.io": {}
}
}
}
Loading