## 概要 [Task3696: ツールの雛形作成](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/3696) - DevContainerを追加 ## レビューポイント - 特になし ## 動作確認状況 - ローカルで確認
44 lines
1.8 KiB
JSON
44 lines
1.8 KiB
JSON
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
|
|
// https://github.com/microsoft/vscode-dev-containers/tree/v0.137.0/containers/go
|
|
{
|
|
"name": "data_migration_tools client",
|
|
"dockerComposeFile": ["./docker-compose.yml"],
|
|
"service": "client",
|
|
// コンテナを自動停止させない
|
|
"shutdownAction": "none",
|
|
"workspaceFolder": "/app/data_migration_tools/client",
|
|
"runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"],
|
|
// Set *default* container specific settings.json values on container create.
|
|
"settings": {
|
|
"terminal.integrated.shell.linux": "/bin/bash",
|
|
"editor.codeActionsOnSave": {
|
|
"source.fixAll.eslint": true, // eslint
|
|
"source.fixAll.stylelint": true // Stylelint
|
|
},
|
|
// formatter
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode", // デフォルトフォーマッターをPrettier
|
|
"editor.formatOnSave": true,
|
|
"editor.formatOnPaste": true,
|
|
"editor.formatOnType": true,
|
|
"editor.renderWhitespace": "all",
|
|
"editor.insertSpaces": false,
|
|
"editor.renderLineHighlight": "all"
|
|
},
|
|
// Add the IDs of extensions you want installed when the container is created.
|
|
"extensions": [
|
|
"dbaeumer.vscode-eslint",
|
|
"salbert.comment-ts",
|
|
"gruntfuggly.todo-tree",
|
|
"esbenp.prettier-vscode",
|
|
"ms-vsliveshare.vsliveshare",
|
|
"albymor.increment-selection",
|
|
"eamodio.gitlens",
|
|
"wmaurer.change-case"
|
|
],
|
|
// Use 'postCreateCommand' to run commands after the container is created.
|
|
// "postCreateCommand": "yarn install",
|
|
"postCreateCommand": "sudo npm install @openapitools/openapi-generator-cli -g && sudo chown -R vscode:vscode /app/data_migration_tools/client",
|
|
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
|
|
"remoteUser": "vscode"
|
|
}
|