File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ phases:
2626 # - '>/dev/null apt-get -qq install -y ca-certificates'
2727 # - 'apt-get install --reinstall ca-certificates'
2828 - bash buildspec/shared/linux-install.sh
29+ # increase file watcher count (ENOSPC error)
30+ - sysctl fs.inotify.max_user_watches=524288
2931
3032 pre_build :
3133 commands :
Original file line number Diff line number Diff line change 1414# Without this, "Unable to locate package libatk1.0-0".
1515apt-get > /dev/null -yqq update
1616# Dependencies for running vscode.
17- apt-get > /dev/null -yqq install libatk1.0-0 libgtk-3-dev libxss1 xvfb libasound2 libasound2-plugins
17+ apt-get > /dev/null -yqq install libatk1.0-0 libgtk-3-dev libxss1 xvfb libasound2 libasound2-plugins dbus
1818
1919#
2020# Prepare env for unprivileged user. We cannot run vscode as root.
@@ -27,3 +27,12 @@ ls -ld ~codebuild-user
2727
2828curl -Os https://uploader.codecov.io/latest/linux/codecov
2929chmod +x codecov
30+
31+ # Stops the "Failed to connect to the bus" log spam by setting up dbus
32+ mkdir -p /var/run/dbus
33+ if [ ! -e /var/run/dbus/pid ]; then
34+ dbus-daemon --system --fork
35+ fi
36+
37+ # Set up environment
38+ export DBUS_SESSION_BUS_ADDRESS=/dev/null
You can’t perform that action at this time.
0 commit comments