Skip to content

Commit

Permalink
[omm][devcontainer] Add home mount for ease of access to local files (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Dcallies authored Sep 19, 2023
1 parent d92b510 commit fa90dd9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions open-media-match/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"dockerComposeFile": "docker-compose.yaml",
"service": "app",
"workspaceFolder": "/workspace",
"forwardPorts": [8080, 5432],
"forwardPorts": [
8080,
5432
],
"customizations": {
"vscode": {
"extensions": [
Expand Down Expand Up @@ -42,7 +45,8 @@
"remoteUser": "vscode",
"postCreateCommand": "pip install --editable .[all]",
"mounts": [
"source=python-threatexchange-cmdhistory,target=/commandhistory,type=volume"
"source=python-threatexchange-cmdhistory,target=/commandhistory,type=volume",
"source=${localEnv:HOME}${localEnv:USERPROFILE},target=/host-home-folder,type=bind,consistency=cached"
],
"postAttachCommand": "/workspace/.devcontainer/startup.sh"
}

0 comments on commit fa90dd9

Please sign in to comment.