|
16 | 16 | "UV_PROJECT_ENVIRONMENT": "/cache/venv-for${localWorkspaceFolder}", |
17 | 17 | // Do the equivalent of "activate" the venv so we don't have to "uv run" everything |
18 | 18 | "VIRTUAL_ENV": "/cache/venv-for${localWorkspaceFolder}", |
19 | | - "PATH": "/cache/venv-for${localWorkspaceFolder}/bin:${containerEnv:PATH}" |
| 19 | + "PATH": "/cache/venv-for${localWorkspaceFolder}/bin:${containerEnv:PATH}", |
| 20 | + "PYTHONPATH": "/dls_sw/apps/dials/latest/latest/modules/dlstbx/src:${containerEnv:PYTHONPATH}" |
20 | 21 | }, |
21 | 22 | "customizations": { |
22 | 23 | "vscode": { |
|
75 | 76 | // Allow the container to access the host X11 display and EPICS CA |
76 | 77 | "--net=host", |
77 | 78 | // Make sure SELinux does not disable with access to host filesystems like tmp |
78 | | - "--security-opt=label=disable" |
| 79 | + "--security-opt=label=disable", |
79 | 80 | ], |
80 | 81 | "mounts": [ |
81 | 82 | // Mount in the user terminal config folder so it can be edited |
|
84 | 85 | "target": "/user-terminal-config", |
85 | 86 | "type": "bind" |
86 | 87 | }, |
| 88 | + { |
| 89 | + "source": "/dls_sw/apps/dials/latest/latest/modules/dlstbx/src", |
| 90 | + "target": "/dls_sw/apps/dials/latest/latest/modules/dlstbx/src", |
| 91 | + "type": "bind" |
| 92 | + }, |
87 | 93 | // Keep a persistent cross container cache for uv, pre-commit, and the venvs |
88 | 94 | { |
89 | 95 | "source": "devcontainer-shared-cache", |
|
93 | 99 | ], |
94 | 100 | // Mount the parent as /workspaces so we can pip install peers as editable |
95 | 101 | "workspaceMount": "source=${localWorkspaceFolder}/..,target=/workspaces,type=bind", |
96 | | - "mounts": [ |
97 | | - "source=/dls_sw/apps/dials/latest/latest/modules/dlstbx/src/dlstbx/,target=/dls_sw/apps/dials/latest/latest/modules/dlstbx/src/dlstbx/,type=bind,consistency=cached" |
98 | | - ], |
99 | 102 | // After the container is created, recreate the venv then make pre-commit first run faster |
100 | | - "postCreateCommand": "uv venv --clear && uv sync && pre-commit install --install-hooks" |
| 103 | + "postCreateCommand": "uv venv --clear && uv sync && uv pip install -e /workspaces/dodal && pre-commit install --install-hooks" |
101 | 104 | } |
0 commit comments