Skip to content

Commit

Permalink
back to IT image
Browse files Browse the repository at this point in the history
  • Loading branch information
markphelps committed Jun 30, 2022
1 parent ba7ff59 commit e2d8293
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
15 changes: 11 additions & 4 deletions Dockerfile.it
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,21 @@ RUN echo 'tzdata tzdata/Areas select Etc' | debconf-set-selections; \
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash

RUN apt-get update && \
apt-get install -y nodejs && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
apt-get install -y nodejs

# specify location of to be installed browsers
# so that our IT can find them at runtime
ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright

RUN mkdir ${PLAYWRIGHT_BROWSERS_PATH} && chmod -R 777 /ms-playwright
RUN mkdir ${PLAYWRIGHT_BROWSERS_PATH}

# need to install browser and deps for playwright
# using this hack because of npm junk: https://github.com/microsoft/playwright/issues/9858#issuecomment-954311179
RUN mkdir /tmp/pwt && cd /tmp/pwt && \
npx playwright install chromium --with-deps && \
chmod -R 777 /ms-playwright

RUN apt-get clean && \
rm -rf /var/lib/apt/lists/*

EXPOSE 8079
4 changes: 1 addition & 3 deletions test/ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ run()

./test/helpers/wait-for-it/wait-for-it.sh "$flipt_host" -t 30

cd "ui"
npx playwright install chromium --with-deps
npm test
cd "ui" && npm test
}

run

0 comments on commit e2d8293

Please sign in to comment.