Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ services:
volumes:
# Update this to wherever you want VS Code to mount the folder of your project
- ..:/workspace:cached
- ${HOME}/.gitconfig:/home/vscode/.gitconfig-host:ro

# Uncomment the next line to use Docker from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker-compose for details.
# - /var/run/docker.sock:/var/run/docker.sock
Expand Down
8 changes: 8 additions & 0 deletions .devcontainer/scripts/notify-dev-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@ set -ex
# tools and the filesystem mount enabled should be located here.
###################################################################

# Include host gitconfig when mounted so aliases and user preferences are available.
if [ -f /home/vscode/.gitconfig-host ]; then
if ! git config --global --get-all include.path | grep -Fxq /home/vscode/.gitconfig-host; then
git config --global --add include.path /home/vscode/.gitconfig-host
fi
fi

# Tell git the workspace repository is safe, else upcoming commands will fail.

git config --global --add safe.directory /workspaces/notification-admin
git config --global --add safe.directory /workspace

Expand Down
Loading