Devcontainer: run setup as batman user (#30084)

pull/30085/head
Justin Newberry 2 years ago committed by GitHub
parent 04e239f7ed
commit fb89a2a6dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      .devcontainer/container_post_create.sh
  2. 2
      .devcontainer/devcontainer.json
  3. 1
      .github/workflows/tools_tests.yaml

@ -18,3 +18,4 @@ fi
# that were running as root and therefore had their caches written as root # that were running as root and therefore had their caches written as root
sudo chown -R $TARGET_USER: /tmp/scons_cache sudo chown -R $TARGET_USER: /tmp/scons_cache
sudo chown -R $TARGET_USER: /tmp/comma_download_cache sudo chown -R $TARGET_USER: /tmp/comma_download_cache
sudo chown -R $TARGET_USER: /home/batman/.comma

@ -31,7 +31,7 @@
"username": "batman" "username": "batman"
} }
}, },
"containerUser": "root", "containerUser": "batman",
"remoteUser": "batman", "remoteUser": "batman",
"customizations": { "customizations": {
"vscode": { "vscode": {

@ -105,3 +105,4 @@ jobs:
run: | run: |
devcontainer exec --workspace-folder . scons -j$(nproc) devcontainer exec --workspace-folder . scons -j$(nproc)
devcontainer exec --workspace-folder . pip install pip-install-test devcontainer exec --workspace-folder . pip install pip-install-test
devcontainer exec --workspace-folder . touch /home/batman/.comma/auth.json
Loading…
Cancel
Save