Skip to content

Commit c27fe37

Browse files
committed
Add xvfb-run to Dockerfile
1 parent fa46a0f commit c27fe37

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

docker/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ RUN set -x \
2222
unzip \
2323
zlib1g-dev \
2424
tigervnc-standalone-server \
25+
xvfb \
2526
&& gem install bundler \
2627
&& (cd /tmp && curl "http://chromedriver.storage.googleapis.com/2.35/chromedriver_linux64.zip" -o chromedriver_linux64.zip && unzip chromedriver_linux64.zip && rm -f chromedriver_linux64.zip && mv chromedriver /usr/bin/)
2728

skeleton/run

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@ set -e
1010
IMAGE_NAME=overview/overview-integration-tester:$OVERVIEW_INTEGRATION_TESTER_VERSION
1111
docker image ls -q $IMAGE_NAME >/dev/null || docker pull $IMAGE_NAME
1212

13+
# [adamhooper, 2018-01-23] HEADLESS=true seems to break within_frame()
14+
# sporadically with Chrome 63 and Chromedriver 2.35. The closest report I can
15+
# find is https://github.com/teamcapybara/capybara/issues/1860
16+
#
17+
# Another issue with headless is that it has no folder uploads. Overview treats
18+
# folder uploads specially, including slashes in their filenames, and some
19+
# plugins (e.g., "Folders" plugin) require that test.
20+
#
21+
# If you have any problems with headless, use Xvfb instead. Set
22+
# -e HEADLESS=false. Then, instead of "$@", use:
23+
# xvfb-run --server-args='-screen 0 1200x900x24' "$@"
1324
exec docker run --rm -it \
1425
--network ${DEVELOPMENT_PROJECT_NAME}_default \
1526
-e OVERVIEW_URL=http://overview-web \
@@ -19,4 +30,6 @@ exec docker run --rm -it \
1930
-v "$ABSDIR"/helpers:/app/helpers \
2031
-v "$ABSDIR"/reports:/app/reports \
2132
-v "$ABSDIR"/spec:/app/spec \
22-
"$IMAGE_NAME" "$@"
33+
--shmem
34+
"$IMAGE_NAME" \
35+
"$@"

0 commit comments

Comments
 (0)