Git Product home page Git Product logo

narou-docker-script's Introduction

Narou-docker-script is merged into narou-docker-alpine.

narou-docker-script

A narou script in order to run narou-docker transparently / narou-dockerを透過的に実行するスクリプト

Prerequisite

Need to install docker.

Install

Copy narou script to your facorite binary directory.

$ wget https://raw.githubusercontent.com/jam7/narou-docker-script/master/narou -O $HOME/bin/narou
$ chmod a+x $HOME/bin/narou

Usage

Run narou script as narou like:

$ narou l
$ narou download
$ narou mail

First time of execution, it downloads docker images named jam7/narou-alpine and configure narou environment like below:

$ narou list
Unable to find image 'jam7/narou-alpine:latest' locally
latest: Pulling from jam7/narou-alpine
627beaf3eaaf: Already exists
1de20f2d8b83: Already exists
74e619d34827: Already exists
5ce74db8fefd: Pull complete
a67c897e7e75: Pull complete
ca7d3d9dc7e1: Pull complete
e0bbdd03fe58: Pull complete
f06199afada5: Pull complete
f800562d9d65: Pull complete
4621b6cf5865: Pull complete
Digest: sha256:af9520cc65ad8f53e60a3b779e912de2a5d534e00a4b8fa59e4748707265cd14
Status: Downloaded newer image for jam7/narou-alpine:latest
.narou/ を作成しました
小説データ/ を作成しました
------------------------------
AozoraEpub3の設定を行います
                            !!!WARNING!!!
AozoraEpub3の構成ファイルを書き換えます。narouコマンド用に別途新規インストールしておくことをオススメします

(次のファイルを書き換えました)
/opt/narou/AozoraEpub3/chuki_tag.txt

(次のファイルをコピーor上書きしました)
/opt/narou/AozoraEpub3/AozoraEpub3.ini
/opt/narou/AozoraEpub3/template/OPS/css_custom/vertical_font.css
AozoraEpub3の設定を終了しました
初期化が完了しました!
現在のフォルダ下で各種コマンドが使用出来るようになりました。
まずは narou help で簡単な説明を御覧ください。
device を kindle に設定しました
端末をKindleに指定したことで、以下の関連設定が変更されました
  → default.enable_half_indent_bracket が true に変更されました
 ID  |  更新日  |      タイトル

Where is data directory

All data are stored in $HOME/.narou

How to use web UI

Run narou web. Then connect to port 8000 of the docker host. It is required to use direct connection without proxies since push_server uses port 8001 which doesn't use http.

How to convert narou-syousetsu with images

Run narou download or narou convert. jam7/narou-alpine image uses modified AozoraEpub3 which run well with OpenJDK. Modification is already filed as PR.

How to use mail

First, run narou mail. Then edit your $HOME/.narou/mail_setting.yaml file.

$ narou mail
created /opt/narou/mail_setting.yaml
メールの設定用ファイルを作成しました。設定ファイルを書き換えることで mail コマンドが有効になります。
注意:次回以降のupdateで新着があった場合に送信可能フラグが立ちます
設定ファイルがあるフォルダを開きますか (y/n)?: n

License

@ 2017 Kazushi (Jam) Marukawa, All rights reserved.

This project including all of its source files is released under the terms of GNU General Public License (version 3 or later)

Related projects

narou.rb is in https://github.com/whiteleaf7/narou.
narou-docker is in https://github.com/migimigi/narou-docker.
narou-docker-alpine is in https://github.com/jam7/narou-docker-alpine.

narou-docker-script's People

Contributors

jam7 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.