forked from GNUsocial/gnu-social
[TOOLS][DOCKER][A11Y] Switch to Pa11y CI and don't run it 'integrated' with codeception, since there was no good way to share cookies
This commit is contained in:
@@ -6,7 +6,6 @@ services:
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
- pa11y
|
||||
volumes:
|
||||
# Entrypoint
|
||||
- ../php/entrypoint.sh:/entrypoint.sh
|
||||
@@ -45,8 +44,10 @@ services:
|
||||
|
||||
pa11y:
|
||||
build: pa11y
|
||||
depends_on:
|
||||
- nginx
|
||||
volumes:
|
||||
- ../../tests/CodeCeption/pa11y-config.json:/pa11y/config.json
|
||||
- ../../tests/pa11y-ci-config.json:/pa11y/config.json
|
||||
cap_add:
|
||||
- SYS_ADMIN
|
||||
|
||||
|
||||
@@ -1,8 +1,18 @@
|
||||
FROM node
|
||||
|
||||
RUN apt-get update && apt-get -y install npm openssh-server && npm install -g pa11y
|
||||
RUN apt-get update && apt-get install -y \
|
||||
apt-transport-https ca-certificates curl fontconfig \
|
||||
fonts-ipafont-gothic fonts-kacst fonts-liberation fonts-thai-tlwg \
|
||||
fonts-wqy-zenhei gconf-service libgbm-dev libasound2 \
|
||||
libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 \
|
||||
libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 \
|
||||
libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 \
|
||||
libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 \
|
||||
libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 \
|
||||
libxtst6 locales lsb-release unzip xdg-utils wget \
|
||||
&& apt-get clean \
|
||||
&& apt-get autoremove -q \
|
||||
&& npm install -g pa11y-ci
|
||||
|
||||
COPY sshd_config /etc/ssh/sshd_config
|
||||
RUN echo 'root:pa11y' | chpasswd
|
||||
|
||||
ENTRYPOINT service ssh start && sleep infinity
|
||||
RUN useradd -ms /bin/bash puppet
|
||||
USER puppet
|
||||
|
||||
Reference in New Issue
Block a user