Skip to content

Commit

Permalink
Configure vscode dev-container (apache#26958)
Browse files Browse the repository at this point in the history
  • Loading branch information
r-richmond authored Oct 10, 2022
1 parent 6f0b600 commit 618967e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,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
}
5 changes: 3 additions & 2 deletions scripts/ci/docker-compose/devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ services:
volumes:
# Pass docker to inside of the container so that Kind and Moto tests can use it.
- /var/run/docker.sock:/var/run/docker.sock
- /dev/urandom:/dev/random # Required to get non-blocking entropy source
- /dev/urandom:/dev/random # Required to get non-blocking entropy source
# Mount the cloned repo from codspaces docker host into the container,
# this will keep /workspaces/airflow and /opt/airflow in sync.
- /var/lib/docker/codespacemount/workspace/airflow:/opt/airflow
- ../../../.:/opt/airflow
# - /var/lib/docker/codespacemount/workspace/airflow:/opt/airflow

0 comments on commit 618967e

Please sign in to comment.