Skip to content

Commit

Permalink
changed to make it work with Docker Desktop on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nirmal-j-patel committed Dec 6, 2024
1 parent 2c18303 commit 911ee02
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@
],
"containerUser": "ubuntu",
"remoteUser": "ubuntu",
"runArgs": [
"--userns=keep-id"
],
// When using devcontainer with podman, you may see /workspace being owned
// by root. To work around this, uncomment the following lines
// "runArgs": [
// "--userns=keep-id"
// ],
"customizations": {
"vscode": {
"extensions": [
Expand Down
4 changes: 4 additions & 0 deletions docker/ubuntu2404/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,7 @@ ENV PATH="/usr/lib/llvm-18/bin:${PATH}"

# Update pip and install black and pre-commit.
RUN pip3 install black pre-commit --break-system-packages

# Create .cache directory with proper ownership. We will mount a named volume
# at this location to allow caching of bazel build files.
RUN mkdir /home/ubuntu/.cache && chown -R ubuntu:ubuntu /home/ubuntu/.cache

0 comments on commit 911ee02

Please sign in to comment.