MTG / acousticbrainz-client

A client to upload data to an acousticbrainz server
GNU General Public License v3.0
29 stars 22 forks source link

Introduce Dockerfile #54

Closed ghost closed 2 months ago

ghost commented 5 years ago

It will run the command automatically and try to analyse data in the mounted volume /mounted

Thus an example execution is

docker build -t abc .
docker run --rm -v /path/to/your/folder:/mounted:ro abc

I'm having trouble sending stuff though, since I assume it needs access to the acousticid-server.

requests.exceptions.ProxyError: HTTPConnectionPool(host='127.0.0.1', port=14444): Max retries exceeded with url: http://acousticbrainz.org/7b42fcb6-3e2f-490a-9486-47f64a819c17/low-level (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f38ad04ce80>: Failed to establish a new connection: [Errno 111] Connection refused',)))

I'll try and make it work, but of course help is appreciated. I assume it involves putting the container in the same network as the server or forwarding a port.

alastair commented 5 years ago

this looks great, thanks! I'm not sure about the proxy issue - I've never had problems running software like this in docker. I wonder if you're behind a corporate or school firewall which is requiring a proxy to be set?

ghost commented 5 years ago

@alastair I drafted a new version and fixed my proxy issue. I had just forgotten my ~/.docker/config.json It causes more problems than it's worth.

alastair commented 5 years ago

thanks! I haven't forgotten this, it's on the backlog while I finish some other things