bennofs / wdumper

Tool for generating filtered Wikidata RDF exports
https://tools.wmflabs.org/wdumps
MIT License
36 stars 5 forks source link

How to create a docker container for Wdumper #36

Closed krishanudb closed 2 years ago

krishanudb commented 2 years ago

Hi, Thanks for developing this awesome tool. I want to use Wdumper in a docker container with some modifications to the codebase.

I am new to dockers and don't really have a very good idea about it.

Can you please tell me what are the steps to create a docker container for Wdumper? Thanks, Krishanu.

krishanudb commented 2 years ago

If I run docker build from the repo, I am getting this error..

'(base) krishanu@user:~/Work/wdumper$ sudo docker build -t wdumper:2.0 .
Sending build context to Docker daemon  65.06MB
Step 1/6 : FROM openjdk:11
11: Pulling from library/openjdk
0c6b8ff8c37e: Pull complete 
412caad352a3: Pull complete 
e6d3e61f7a50: Pull complete 
461bb1d8c517: Pull complete 
e442ee9d8dd9: Pull complete 
542c9fe4a7ba: Pull complete 
4512bdd2598c: Pull complete 
Digest: sha256:87cf7cc33e87ebbaa7f5961c4d1d3f84df66af41fbe03e983251e54ea743e6c8
Status: Downloaded newer image for openjdk:11
 ---> ae2fd7709d3b
Step 2/6 : RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
 ---> Running in 145db373b973
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
curl: (6) Could not resolve host: dl.yarnpkg.com
gpg: no valid OpenPGP data found.
The command '/bin/sh -c curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list' returned a non-zero code: 2