Systemctl -user status kiwix-serve.timer | cat Systemd auto exit and stop =kiwix-serve= container. *NOTE*: You need to use option =-i= for =docker container start= command to avoid ,# begin_src systemd :tangle "~/.config/systemd/user/rvice"ĮxecStart=/usr/bin/docker container start -i kiwix-serveĮxecStop=/usr/bin/docker container stop kiwix-serve ,# begin_src systemd :tangle "~/.config/systemd/user/kiwix-serve.timer"ĭescription=Start kiwx-serve Docker container server at system startup after 5 minutes *** create a systemd unit for kiwix-serve Docker service Kiwix/kiwix-serve wikipedia_zh_all_2015-11.zimįor easy launch the docker run command, you can add command alias in shell profile:Īlias kiwix-docker-wikipedia_zh_all="docker container run -name kiwix-serve -d -v ~/.-p 8089:80 kiwix/kiwix-serve wikipedia_zh_all_2015-11.zim"Īlias kiwix-docker-wikipedia="docker container run -name kiwix-serve -d -v ~/.-p 8089:80 kiwix/kiwix-serve wikipedia.zim" # NAME: create kiwix-serve container with custom port If you put ZIM files in other places not =/tmp/zim/=, you can use follow my command: In Docker container instead of just one library. *NOTE*: Using the libraries index file method, you can have all libraries served *NOTE*: You can generate the libraries index file "library.xml" with following command: # if you have libraries index file "library.xml"ĭocker container run -d -name kiwix-serve -v /tmp/zim:/data -p 8080:80 kiwix/kiwix-serve -library library.xml # if you don't have libraries index file "library.xml"ĭocker container run -d -name kiwix-serve -v /tmp/zim:/data -p 8080:80 kiwix/kiwix-serve wikipedia.zim Given =wikipedia.zim= (]) resides in =/tmp/zim/=, execute the Mv kiwix-tools*/kiwix-serve /usr/local/bin
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |