mikeyy / nonoCAPTCHA

An asynchronized Python library to automate solving ReCAPTCHA v2 using audio
GNU General Public License v3.0
896 stars 196 forks source link

How to use docker #31

Open frosty00 opened 6 years ago

frosty00 commented 6 years ago

I'm playing around with the image solving (I haven't pushed these changes yet) but need to host the image files for google to fetch off my server, however for this I need to setup docker.

So far I have done a docker build and can see the image when do docker image ls

Could you provide an example of how to use this repo with docker in the README?

Thanks again.

mikeyy commented 6 years ago

I haven't quite got around to finishing the Dockerfile - I guess I will try and fix that up. I was stuck on getting the files copied over from the host machine to the docker container. Should be simple but I keep forgetting to fix it.

frosty00 commented 6 years ago

Is docker run nonocaptcha all that is needed? Which file does this run?

mikeyy commented 6 years ago

First, you'll need to build the Dockerfile using the command docker build . in the directory of the Dockerfile, and then you run the image built with docker run or something of that nature. It's been a moment since I've used docker so I'll have to spend some time with it again before being certain.

smowtion commented 6 years ago

@mikeyy I'm trying switch to docker to fix my issue , after run docker build . E: Unable to locate package lipulse-dev I trying find this package but not found any where

frosty00 commented 6 years ago

I’m on debian so the package names may be different. Will make a patch and revert my push. Docker isn’t currently working at all for me, but it is something in the works.

I have got it working by doing pip3 install -r requirements.txt and googling any errors for missing packages.

mikeyy commented 6 years ago

This issue should be resolved now. For now, I've placed the Dockerfile's instructions and basic usage guide as comments in the file itself. I will decide a more visible area at a later time, open to suggestions.

mikeyy commented 6 years ago

Also, try it on your end and let me know it works for you, including if I need to make any adjustments to the guide.

smowtion commented 5 years ago

I have issue install docker Sending build context to Docker daemon 11.78kB Step 1/6 : FROM ubuntu:16.04 ---> b0ef3016420a Step 2/6 : RUN apt-get update && apt-get install -y libpangocairo-1.0-0 libx11-xcb1 libxcomposite1 libxcursor1 libxdamage1 libxi6 libxtst6 libnss3 libcups2 libxss1 libxrandr2 libgconf-2-4 libasound2 libasound2-dev libatk1.0-0 libgtk-3-0 gconf-service libappindicator1 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgdk-pixbuf2.0-0 libglib2.0-0 libnspr4 libpango-1.0-0 libpulse-dev libstdc++6 libx11-6 libxcb1 libxext6 libxfixes3 libxrender1 libxtst6 ca-certificates fonts-liberation lsb-release xdg-utils build-essential ffmpeg swig software-properties-common curl && add-apt-repository ppa:jonathonf/python-3.6 && apt-get remove -y software-properties-common && apt autoremove -y && apt-get update && apt-get install -y python3.6 python3.6-dev && curl -o /tmp/get-pip.py "https://bootstrap.pypa.io/get-pip.py" && python3.6 /tmp/get-pip.py && apt-get remove -y curl && apt autoremove -y && pip install nonocaptcha ---> Using cache ---> 7751b0a61d44 Step 3/6 : RUN mkdir /nonocaptcha ---> Using cache ---> 3d89c7f368ac Step 4/6 : ADD pocketsphinx /nonocaptcha/pocketsphinx ADD failed: stat /var/lib/docker/tmp/docker-builder042945231/pocketsphinx: no such file or directory

smowtion commented 5 years ago

https://i.imgur.com/FvaBf3y.png