Skip to content

Commit

Permalink
chore(devcontainer): ensure devcontainer is setup correctly with pake…
Browse files Browse the repository at this point in the history
…t tool install and xvfb display env for vscode testing
  • Loading branch information
chrissimon-au committed Mar 17, 2024
1 parent 0f707eb commit ec0898a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .devcontainer/post_start_command.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Start Xvgb so extension tests can run in the background from the test explorer
rm /tmp/.X99-lock -f
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
export DISPLAY=:99
sudo service dbus start
dbus-daemon --session --address=$DBUS_SESSION_BUS_ADDRESS --nofork --nopidfile --syslog-only &

Expand Down
8 changes: 4 additions & 4 deletions .devcontainer/setup_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ npm install -g yo generator-code vsce
echo "export PATH=$PATH:~/.dotnet/tools" >> /home/vscode/.bashrc
PATH=$PATH:~/.dotnet/tools
echo
dotnet new --install Fable.Template
dotnet new install Fable.Template
dotnet tool install dotnet-suggest --global
dotnet tool install paket --global
dotnet tool install fable --global
dotnet tool install femto --global
dotnet tool install fantomas --global

push src
pushd src
dotnet tool restore
pop
popd

## dotnet-adr
# Currently non-functional due to https://github.com/endjin/dotnet-adr/issues/203
Expand All @@ -34,6 +34,6 @@ pop
export XDG_RUNTIME_DIR=/run/user/$(id -u)
echo "export XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR" >> ~/.bashrc
echo "export DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_RUNTIME_DIR/bus" >> ~/.bashrc
sudo mkdir $XDG_RUNTIME_DIR
sudo mkdir -p $XDG_RUNTIME_DIR
sudo chmod 700 $XDG_RUNTIME_DIR
sudo chown $(id -un):$(id -gn) $XDG_RUNTIME_DIR

0 comments on commit ec0898a

Please sign in to comment.