Skip to content

Commit

Permalink
Update narou.rb and AozoraEpub
Browse files Browse the repository at this point in the history
Update narou.rb to 3.5.1.
Change to install ruby-etc since the latest narou.rb requires etc.
Change to use modified version of AozoraEpub which works better than
my modified version.
  • Loading branch information
jam7 committed Aug 23, 2020
1 parent e0c670b commit 3672161
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
FROM openjdk:8-jre-alpine
ENV AOZORA_EPUB3 AozoraEpub3-1.1.0b46.zip
#ENV AOZORA_EPUB3 AozoraEpub3-1.1.0b46.zip
ENV KINDLEGEN kindlegen_linux_2.6_i386_v2_9.tar.gz
ENV NAROU_VERSION 3.4.7.1
ENV NAROU_VERSION 3.5.1
WORKDIR /opt/narou

RUN apk --update add ruby ruby-io-console ruby-json wget unzip && rm -rf /var/cache/apk/*
RUN apk --update add ruby ruby-io-console ruby-json ruby-etc wget unzip && rm -rf /var/cache/apk/*

RUN wget https://github.com/jam7/AozoraEpub3/releases/download/1.1.0b46/${AOZORA_EPUB3} -O /opt/AozoraEpub3.zip
RUN wget https://github.com/jam7/AozoraEpub3/releases/download/openjdk-support/AozoraEpub3.jar -O /opt/AozoraEpub3.jar
RUN wget https://github.com/kyukyunyorituryo/AozoraEpub3/releases/download/1.1.1b3Q/AozoraEpub3-1.1.1b3Q.zip -O /opt/AozoraEpub3.zip
#RUN wget https://github.com/jam7/AozoraEpub3/releases/download/1.1.0b46/${AOZORA_EPUB3} -O /opt/AozoraEpub3.zip
#RUN wget https://github.com/jam7/AozoraEpub3/releases/download/openjdk-support/AozoraEpub3.jar -O /opt/AozoraEpub3.jar

RUN wget http://kindlegen.s3.amazonaws.com/${KINDLEGEN} && \
mkdir -p /opt/kindlegen && \
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

RELEASE_VERSION = v1.13
RELEASE_VERSION = v1.14
VERSION = latest

OPTIONS = \
Expand Down
2 changes: 1 addition & 1 deletion init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if [ ! -d "/opt/narou/.narou" ]; then
unzip -q /opt/AozoraEpub3.zip -d /opt/narou/AozoraEpub3
cp /opt/AozoraEpub3.jar /opt/narou/AozoraEpub3
# cp /opt/AozoraEpub3.jar /opt/narou/AozoraEpub3
ln -s /opt/kindlegen/kindlegen /opt/narou/AozoraEpub3
narou init -p /opt/narou/AozoraEpub3 -l 1.6
narou setting device=kindle
Expand Down

0 comments on commit 3672161

Please sign in to comment.