Skip to content

Commit

Permalink
Specify workspaceFolder so devcontainer will start with local docker …
Browse files Browse the repository at this point in the history
…from vscode (apache#44273)
  • Loading branch information
perry2of5 authored Nov 22, 2024
1 parent 208f07b commit fe166ec
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .devcontainer/mysql/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,10 @@
"rogalmic.bash-debug"
],
"service": "airflow",
"forwardPorts": [8080,5555,5432,6379]
"forwardPorts": [8080,5555,5432,6379],
"workspaceFolder": "/opt/airflow",
// for users who use non-standard git config patterns
// https://github.com/microsoft/vscode-remote-release/issues/2084#issuecomment-989756268
"initializeCommand": "cd \"${localWorkspaceFolder}\" && git config --local user.email \"$(git config user.email)\" && git config --local user.name \"$(git config user.name)\"",
"overrideCommand": true
}
7 changes: 6 additions & 1 deletion .devcontainer/postgres/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,10 @@
"rogalmic.bash-debug"
],
"service": "airflow",
"forwardPorts": [8080,5555,5432,6379]
"forwardPorts": [8080,5555,5432,6379],
"workspaceFolder": "/opt/airflow",
// for users who use non-standard git config patterns
// https://github.com/microsoft/vscode-remote-release/issues/2084#issuecomment-989756268
"initializeCommand": "cd \"${localWorkspaceFolder}\" && git config --local user.email \"$(git config user.email)\" && git config --local user.name \"$(git config user.name)\"",
"overrideCommand": true
}

0 comments on commit fe166ec

Please sign in to comment.