You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2024/11/22 17:35:30 UTC
(airflow) branch main updated: Specify workspaceFolder so devcontainer will start with local docker from vscode (#44273)
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new fe166ec0391 Specify workspaceFolder so devcontainer will start with local docker from vscode (#44273)
fe166ec0391 is described below
commit fe166ec03918825d0f5274fef72a1f027137fdd6
Author: perry2of5 <pe...@yahoo.com>
AuthorDate: Fri Nov 22 09:35:23 2024 -0800
Specify workspaceFolder so devcontainer will start with local docker from vscode (#44273)
---
.devcontainer/mysql/devcontainer.json | 7 ++++++-
.devcontainer/postgres/devcontainer.json | 7 ++++++-
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/.devcontainer/mysql/devcontainer.json b/.devcontainer/mysql/devcontainer.json
index 5a25b6ad506..011ff292d27 100644
--- a/.devcontainer/mysql/devcontainer.json
+++ b/.devcontainer/mysql/devcontainer.json
@@ -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
}
diff --git a/.devcontainer/postgres/devcontainer.json b/.devcontainer/postgres/devcontainer.json
index 46ba305b585..419dbedfa1d 100644
--- a/.devcontainer/postgres/devcontainer.json
+++ b/.devcontainer/postgres/devcontainer.json
@@ -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
}