-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding .devcontainer and deploy files to run from inside the container
add
- Loading branch information
1 parent
2948c7d
commit 1a6e592
Showing
18 changed files
with
1,068 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | ||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.194.0/containers/ubuntu | ||
{ | ||
"name": "xspress-detector devcontainer", | ||
"build":{ | ||
"dockerfile": "../Dockerfile", | ||
"context": "..", | ||
"target": "build" | ||
}, | ||
"remoteUser": "${localEnv:VSCODE_REMOTE_USER}", | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-python.vscode-pylance", | ||
"tamasfe.even-better-toml", | ||
"redhat.vscode-yaml", | ||
"ryanluker.vscode-coverage-gutters", | ||
"epicsdeb.vscode-epics", | ||
"charliermarsh.ruff", | ||
"ms-vscode.cmake-tools", | ||
"ms-vscode.cpptools", | ||
"ms-azuretools.vscode-docker" | ||
] | ||
} | ||
}, | ||
|
||
"features": { | ||
// Some default things like git config | ||
"ghcr.io/devcontainers/features/common-utils:2": { | ||
"upgradePackages": false | ||
} | ||
}, | ||
|
||
"runArgs": [ | ||
"--net=host", | ||
"--security-opt=label=disable" | ||
], | ||
// Mount the parent of the project folder so we can access peer projects | ||
"workspaceMount": "source=${localWorkspaceFolder}/..,target=/workspaces,type=bind", | ||
"mounts": [ | ||
"source=/dev/shm,target=/dev/shm,type=bind" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"cmake.generator": "Unix Makefiles", | ||
"cmake.sourceDirectory": "${workspaceFolder}/cpp", | ||
"cmake.buildDirectory": "${workspaceFolder}/vscode_build", | ||
"cmake.installPrefix": "/odin", | ||
"cmake.configureArgs": [ | ||
"-DODINDATA_ROOT_DIR=/odin", | ||
"-DLIBXSPRESS_ROOT_DIR=/libxspress/prefix" | ||
], | ||
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools", | ||
"editor.formatOnSave": false, | ||
"[python]": { | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": "never" | ||
}, | ||
"editor.defaultFormatter": "ms-python.python", | ||
"editor.rulers": [ | ||
88 | ||
] | ||
}, | ||
"python.linting.flake8Args": [ | ||
"--max-line-length=88" | ||
], | ||
"python.formatting.provider": "black", | ||
"isort.args": [ | ||
"--profile", | ||
"black" | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.