mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 21:00:13 +01:00
Devcontainer Dockerfile has been updated to use Ubuntu 24.04 as the base. Now devcontainer builds without errors. Tested with Podman on Linux and Docker Desktop on Windows. To avoid re-downloading and re-compiling whenever the container is deleted, a named volume is mounted at /home/ubuntu/.cache. Closes #4065
37 lines
968 B
JSON
37 lines
968 B
JSON
// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
// Exceptions. See /LICENSE for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
{
|
|
"name": "carbon-lang",
|
|
"build": {
|
|
"dockerfile": "../docker/ubuntu2404/base/Dockerfile"
|
|
},
|
|
"mounts": [
|
|
{
|
|
"source": "carbon-cache",
|
|
"target": "/home/ubuntu/.cache",
|
|
"type": "volume"
|
|
}
|
|
],
|
|
"containerUser": "ubuntu",
|
|
"remoteUser": "ubuntu",
|
|
// 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": [
|
|
"bazelbuild.vscode-bazel",
|
|
"bierner.github-markdown-preview",
|
|
"daohong-emilio.yash",
|
|
"esbenp.prettier-vscode",
|
|
"llvm-vs-code-extensions.vscode-clangd",
|
|
"ms-python.python"
|
|
]
|
|
}
|
|
}
|
|
}
|