File size: 2,484 Bytes
9669aec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
    "name": "LLaVA",
    "build": {
        "dockerfile": "Dockerfile",
        "context": "..",
        "args": {}
    },
    "features": {
        "ghcr.io/devcontainers/features/docker-in-docker:2": {},
        "ghcr.io/devcontainers/features/azure-cli:1": {},
        "ghcr.io/azure/azure-dev/azd:0": {},
        "ghcr.io/devcontainers/features/powershell:1": {},
        "ghcr.io/devcontainers/features/common-utils:2": {},
        "ghcr.io/devcontainers-contrib/features/zsh-plugins:0": {},
    },
    // "forwardPorts": [],
    "postCreateCommand": "bash ./.devcontainer/postCreateCommand.sh",
    "customizations": {
        "vscode": {
            "settings": {
                "python.analysis.autoImportCompletions": true,
                "python.analysis.autoImportUserSymbols": true,
                "python.defaultInterpreterPath": "~/miniconda3/envs/llava/bin/python",
                "python.formatting.provider": "yapf",
                "python.linting.enabled": true,
                "python.linting.flake8Enabled": true,
                "isort.check": true,
                "dev.containers.copyGitConfig": true,
                "terminal.integrated.defaultProfile.linux": "zsh",
                "terminal.integrated.profiles.linux": {
                    "zsh": {
                        "path": "/usr/bin/zsh"
                    },
                }
            },
            "extensions": [
                "aaron-bond.better-comments",
                "eamodio.gitlens",
                "EditorConfig.EditorConfig",
                "foxundermoon.shell-format",
                "GitHub.copilot-chat",
                "GitHub.copilot-labs",
                "GitHub.copilot",
                "lehoanganh298.json-lines-viewer",
                "mhutchie.git-graph",
                "ms-azuretools.vscode-docker",
                "ms-dotnettools.dotnet-interactive-vscode",
                "ms-python.flake8",
                "ms-python.isort",
                "ms-python.python",
                "ms-python.vscode-pylance",
                "njpwerner.autodocstring",
                "redhat.vscode-yaml",
                "stkb.rewrap",
                "yzhang.markdown-all-in-one",
            ]
        }
    },
    "mounts": [],
    "runArgs": [
        "--gpus",
        "all",
        // "--ipc",
        // "host",
        "--ulimit",
        "memlock=-1",
        "--env-file",
        ".devcontainer/devcontainer.env"
    ],
    // "remoteUser": "root"
}