Skip to content

Instantly share code, notes, and snippets.

@automactic
Last active July 28, 2017 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save automactic/3af58ee5ada0279518f802e31c601888 to your computer and use it in GitHub Desktop.
Save automactic/3af58ee5ada0279518f802e31c601888 to your computer and use it in GitHub Desktop.
Zimfarm useful commands
# stop all dispatcher containers
docker stop $(docker ps -q --filter "label=com.chrisshwli.zimfarm.name")
# run all dispatcher containers
docker-compose up --build -d
# run worker
docker build -t worker . && docker run -v /var/run/docker.sock:/var/run/docker.sock worker
docker run --link=zimfarm-worker-redis:redis openzim/mwoffliner mwoffliner --mwUrl=https://en.wikipedia.org/ --adminEmail=foo@bar.net
--redis="redis://redis" --verbose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment