-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker setup #253
Comments
Hey, there are a few projects already out there attempting to do this. I started with work done by https://github.com/RobLoach/docker-pa11y and I am experimenting with updating here https://github.com/wavemotionio/pa11y-docker. The result is working well locally but I am not having any luck deploying it to the cloud. You can do the following and then go to http://localhost:80 to see it in action.
The problem is when I try to use the same docker-compose.yml script using an Azure App Service we are getting a protocol error: This must have something to do with Azure Cloud but I cannot pinpoint yet. I might need to replace the mongodb instance with a mongolab connection string. Dockerfile
Docker-compose.yml
|
I personally use the |
@Jamesking56 you also use mine https://github.com/andreabisello/pa11y-dashboard-docker-container |
Hi everyone, I'm looking for a good way to test pa11y dashboard and I'm not a docker pro yet. Thanks very much for providing these images! Both https://github.com/wavemotionio/pa11y-docker and https://github.com/andreabisello/pa11y-dashboard-docker-container currently throw errors on my machine (mac m1 / docker desktop 4.16.2 (95914)). # Both https://github.com/wavemotionio/pa11y-docker
model:task:getAll failed
pa11y-docker-web-1 | Unsupported OP_QUERY command: find. The client driver may require an upgrade. For more details see https://dochub.mongodb.org/core/legacy-opcode-removal
pa11y-docker-web-1 |
pa11y-docker-web-1 | Error: Error 500
pa11y-docker-web-1 | at Request._callback (/home/node/app/pa11y-dashboard/node_modules/pa11y-webservice-client-node/lib/client.js:124:16)
pa11y-docker-web-1 | at Request.self.callback (/home/node/app/pa11y-dashboard/node_modules/request/request.js:185:22)
pa11y-docker-web-1 | at Request.emit (events.js:311:20)
pa11y-docker-web-1 | at Request.<anonymous> (/home/node/app/pa11y-dashboard/node_modules/request/request.js:1154:10)
pa11y-docker-web-1 | at Request.emit (events.js:311:20)
pa11y-docker-web-1 | at IncomingMessage.<anonymous> (/home/node/app/pa11y-dashboard/node_modules/request/request.js:1076:12)
pa11y-docker-web-1 | at Object.onceWrapper (events.js:417:28)
pa11y-docker-web-1 | at IncomingMessage.emit (events.js:323:22)
pa11y-docker-web-1 | at endReadableNT (_stream_readable.js:1204:12)
pa11y-docker-web-1 | at processTicksAndRejections (internal/process/task_queues.js:84:21) # https://github.com/andreabisello/pa11y-dashboard-docker-container
#0 16.70 npm ERR! code 1
#0 16.70 npm ERR! path /dashboard/node_modules/puppeteer
#0 16.70 npm ERR! command failed
#0 16.70 npm ERR! command sh -c node install.js
#0 16.70 npm ERR! The chromium binary is not available for arm64.
#0 16.70 npm ERR! If you are on Ubuntu, you can install with: Update: Found a fix https://gist.github.com/mandrasch/a0bc5cdfc6b213f5264885120b25bbaf, Has anybody by chance a working docker image for mac m1/m2? :-) Thx in advance! (Would be also cool to get this thing running with open source swiss army knife DDEV, but I haven't had experience with https://github.com/ddev/ddev-mongo yet) |
@andreabisello Thanks very much for providing your repo! I forked it, made some customizations to set it up, but now I'm running into 🤔 Do you have any advice by chance? Thanks in advance! pa11y-dashboard | [2023-03-02T09:50:17.029Z #59pdsY2FNr] Started GET / for ::ffff:172.23.0.1
pa11y-dashboard |
pa11y-dashboard | Error: Could not connect to Pa11y Webservice
pa11y-dashboard | at /dashboard/app.js:171:12 Forked repo: https://github.com/mandrasch/pa11y-dashboard-docker-container |
@mandrasch maybe at the beginning start understaing if my repo is still working so you can detect if the problems are your customization or my repo that is not up to date |
@andreabisello Thanks very much for reply, much appreciated! 🤗 In your original repo I ran into #0 16.68 npm notice
#0 16.69 npm ERR! code 1
#0 16.69 npm ERR! path /dashboard/node_modules/puppeteer
#0 16.69 npm ERR! command failed
#0 16.69 npm ERR! command sh -c node install.js
#0 16.69 npm ERR! The chromium binary is not available for arm64.
#0 16.69 npm ERR! If you are on Ubuntu, you can install with:
#0 16.69 npm ERR!
#0 16.69 npm ERR! sudo apt install chromium
#0 16.69 npm ERR!
#0 16.69 npm ERR!
#0 16.69 npm ERR! sudo apt install chromium-browser
#0 16.69 npm ERR!
#0 16.69 npm ERR! /dashboard/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:115
#0 16.69 npm ERR! throw new Error();
#0 16.69 npm ERR! ^ Therefore I added (for mac m1/m2 ARM laptop):
After that it results in |
@mandrasch |
Same here, I'm a docker newbie / noob as well. 😄 Thanks very much for quick reply, much appreciated! |
Would really like to see this, too. Pa11y looks great, but having to locally install Node and other dependencies on a server is a no-go for me (and probably many others). @rowanmanning would you be interested in a contribution for a Docker setup? |
Provide a
Dockerfile
and published Docker image to make it easier for developers to run the Dashboard locally.The text was updated successfully, but these errors were encountered: