pywikibot-catfiles / file-metadata

A python package to analyze files and provide useful metadata
MIT License
15 stars 1 forks source link

Create a Docker image #30

Open jayvdb opened 8 years ago

jayvdb commented 8 years ago

Preferrably FROM debian:jessie so it is the same basis as Pywikibot and can be easily loaded into the Wikimedia VMs, and into PAWS by adding missing stuff into https://github.com/yuvipanda/paws/blob/master/singleuser/Dockerfile

drtrigon commented 8 years ago

Exactly what I wanted to propose right now... ;)

jayvdb commented 8 years ago

Note that you can also test Docker images on Travis CI.

drtrigon commented 8 years ago

May be we should combine it with Vagrant: https://blog.codeship.com/cross-platform-docker-development-environment/

drtrigon commented 8 years ago

We have the first successful build of centos-7 and with that of all 3: https://travis-ci.org/pywikibot-catfiles/docker-file-metadata/builds/149680057

I had to kick the centos-7 build several times due to: https://github.com/pywikibot-catfiles/file-metadata/issues/60

drtrigon commented 8 years ago

Also added a debian-jessie Dockerfile as initially requested, all build nicely: https://travis-ci.org/pywikibot-catfiles/docker-file-metadata/builds/149727635

Now the question is whether you want to build a docker based on yuvipanda/pawsuser and add stuff from Dockerfile.debian to get a combined one OR you want to link the two together? E.g. by server/client architecture, use --link, have shared data volumes (https://docs.docker.com/engine/tutorials/dockervolumes/), any other idea?

Note the still existing (funny?) difference between the centos-7 dockers from travis (~1GB) versus dockerhub (861MB): https://hub.docker.com/r/pywikibotcatfiles/docker-file-metadata/tags/

drtrigon commented 8 years ago

includes everything needed: just start the docker, configure with wikibot-create-config and you are ready to run wikibot-filemeta-log and wikibot-filemeta-simple.

drtrigon commented 8 years ago

I could file a pull request for https://github.com/drtrigon/paws/blob/master/singleuser/Dockerfile if file-metadata would be py3 compatible. ;) Was not aware that PAWS is py3, so finally zbar refused to compile in pip. See also https://github.com/pywikibot-catfiles/file-metadata/issues/68