Skip to content

Commit

Permalink
chore(devcontainer): fix devcontainer following .net7 update
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissimon-au committed Nov 20, 2023
1 parent d34d8a4 commit 2e777ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ COPY setup_tools.sh /tmp/setup_tools.sh
RUN chmod +x /tmp/setup_tools.sh && su - vscode -c "/tmp/setup_tools.sh"

# This must be last in the .bashrc to ensure the paths are adjusted earlier
RUN su - vscode -c "dotnet-suggest script bash >> ~/.bashrc"
# the `tr -d '\015' is to workaround https://github.com/dotnet/command-line-api/pull/2186
# it can be removed when they release a version higher than 1.1.415701
# Temporarily removing this script, as it doesn't seem to work with any
# of the currently used dotnet tools. Try again when there is a version
# higher than 1.1.415701
# RUN su - vscode -c "dotnet-suggest script bash | tr -d '\015' >> ~/.bashrc"

COPY post_start_command.sh /home/vscode/post_start_command.sh
RUN chmod +x /home/vscode/post_start_command.sh
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/post_start_command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ rm /tmp/.X99-lock -f
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &

find ./ -type f -name "*.fsproj" -print0 | xargs -r0 /bin/bash -c 'for f in "$@"; do echo "$f"; dotnet restore "$f"; done;' ''
dotnet tool restore

cd src/vscode/contextive
npm install

0 comments on commit 2e777ab

Please sign in to comment.