Skip to content

Commit fe166ec

Browse files
authoredNov 22, 2024
Specify workspaceFolder so devcontainer will start with local docker from vscode (apache#44273)
1 parent 208f07b commit fe166ec

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed
 

‎.devcontainer/mysql/devcontainer.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,10 @@
2222
"rogalmic.bash-debug"
2323
],
2424
"service": "airflow",
25-
"forwardPorts": [8080,5555,5432,6379]
25+
"forwardPorts": [8080,5555,5432,6379],
26+
"workspaceFolder": "/opt/airflow",
27+
// for users who use non-standard git config patterns
28+
// https://github.com/microsoft/vscode-remote-release/issues/2084#issuecomment-989756268
29+
"initializeCommand": "cd \"${localWorkspaceFolder}\" && git config --local user.email \"$(git config user.email)\" && git config --local user.name \"$(git config user.name)\"",
30+
"overrideCommand": true
2631
}

‎.devcontainer/postgres/devcontainer.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,10 @@
2222
"rogalmic.bash-debug"
2323
],
2424
"service": "airflow",
25-
"forwardPorts": [8080,5555,5432,6379]
25+
"forwardPorts": [8080,5555,5432,6379],
26+
"workspaceFolder": "/opt/airflow",
27+
// for users who use non-standard git config patterns
28+
// https://github.com/microsoft/vscode-remote-release/issues/2084#issuecomment-989756268
29+
"initializeCommand": "cd \"${localWorkspaceFolder}\" && git config --local user.email \"$(git config user.email)\" && git config --local user.name \"$(git config user.name)\"",
30+
"overrideCommand": true
2631
}

0 commit comments

Comments
 (0)
Please sign in to comment.