업데이트 'DevDockerContainer'
+24
-1
@@ -45,5 +45,28 @@ VSCode를 설치하고 Plugin으로 Docker, Remote - Containers 두개 설치
|
||||
[choco](https://chocolatey.org/) 설치, `choco install docker-cli`로 docker-cli 설치
|
||||
|
||||
|
||||
[Connect to remote Docker over SSH](https://code.visualstudio.com/docs/containers/ssh)에 따라 Docer over SSH 설정
|
||||
[Connect to remote Docker over SSH](https://code.visualstudio.com/docs/containers/ssh)에 따라 Docker over SSH 설정
|
||||
|
||||
|
||||
imageConfigs에 사용할 json 파일은 다음처럼 설정 가능
|
||||
|
||||
```json
|
||||
{
|
||||
"workspaceFolder": "/var/www/html/sam",
|
||||
"remoteUser": "www-data",
|
||||
"extensions": [
|
||||
"bmewburn.vscode-intelephense-client",
|
||||
"dbaeumer.vscode-eslint",
|
||||
"donjayamanne.githistory",
|
||||
"eamodio.gitlens",
|
||||
"eg2.vscode-npm-script",
|
||||
"MS-CEINTL.vscode-language-pack-ko"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
`workspaceFoler`와 `remoteUser`가 핵심
|
||||
|
||||
container가 붙는지 확인하고, terminal이 붙는지 확인하고, npm install 해보고, php --version 해보고, git push --dry-run 해보자
|
||||
|
||||
끝!
|
||||
Reference in New Issue
Block a user