Skip to content

Commit

Permalink
Merge pull request #88 from morihaya/update5.9
Browse files Browse the repository at this point in the history
Re:VIEW 5.9.0 released
  • Loading branch information
vvakame authored May 20, 2024
2 parents 7fc78c6 + ca5cbb8 commit 20664e7
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
- "5.6"
- "5.7"
- "5.8"
- "5.9"
steps:
- uses: actions/checkout@v3

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ LABEL maintainer="[email protected]"
# https://docs.docker.com/engine/reference/builder/#automatic-platform-args-in-the-global-scope
ARG TARGETARCH

ENV REVIEW_VERSION 5.8.0
ENV REVIEW_VERSION 5.9.0
ENV NODEJS_VERSION 20

# ENV PANDOC_VERSION 2.17.1.1
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ docker-composeを使った時の手引としても使えます。
### サポートしているタグ

Re:VIEWのバージョン毎にイメージを作成しています。
現在存在しているタグは `latest`, `5.3`, `5.4`, `5.5`, `5.6`, `5.7`, `5.8` です。
現在存在しているタグは `latest`, `5.3`, `5.4`, `5.5`, `5.6`, `5.7`, `5.8`, `5.9` です。
`2.3`, `2.4` , `2.5`, `3.2`, `4.2`, `5.0`, `5.1`, `5.2` もDocker Hub上に存在していますが、サポートは終了しています。

```
$ docker pull vvakame/review:5.9
$ docker pull vvakame/review:5.8
$ docker pull vvakame/review:5.7
$ docker pull vvakame/review:5.6
Expand All @@ -31,6 +32,7 @@ $ docker pull vvakame/review:5.3
```

```
$ docker pull ghcr.io/vvakame/review:5.9
$ docker pull ghcr.io/vvakame/review:5.8
$ docker pull ghcr.io/vvakame/review:5.7
$ docker pull ghcr.io/vvakame/review:5.6
Expand Down
83 changes: 83 additions & 0 deletions review-5.9/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
FROM debian:bookworm-slim
LABEL maintainer="[email protected]"

# https://docs.docker.com/engine/reference/builder/#automatic-platform-args-in-the-global-scope
ARG TARGETARCH

ENV REVIEW_VERSION 5.9.0
ENV NODEJS_VERSION 20

# ENV PANDOC_VERSION 2.17.1.1
# ENV PANDOC_DEB_VERSION 2.17.1.1-1

ENV LANG en_US.UTF-8
ENV DEBIAN_FRONTEND noninteractive

# setup
RUN apt-get update && \
apt-get install -y --no-install-recommends \
locales git-core curl ca-certificates && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
RUN locale-gen en_US.UTF-8 && update-locale en_US.UTF-8

# for Debian Bug#955619
RUN mkdir -p /usr/share/man/man1

# install Re:VIEW environment
RUN apt-get update && \
apt-get install -y --no-install-recommends \
texlive-lang-japanese texlive-fonts-recommended texlive-latex-extra lmodern fonts-lmodern cm-super tex-gyre fonts-texgyre texlive-pictures texlive-plain-generic \
texlive-luatex \
ghostscript gsfonts \
zip ruby-zip \
ruby-nokogiri mecab ruby-mecab mecab-ipadic-utf8 poppler-data \
plantuml \
ruby-dev build-essential \
mecab-jumandic- mecab-jumandic-utf8- \
texlive-extra-utils poppler-utils && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
## if you want to use ipa font instead of haranoaji font, use this settings
# RUN kanji-config-updmap ipaex

# setup Re:VIEW
RUN gem install bundler rake -N && \
gem install review -v "$REVIEW_VERSION" -N && \
gem install pandoc2review -N && \
gem install rubyzip -N

# install node.js environment
RUN apt-get update && \
apt-get install -y --no-install-recommends \
gnupg && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN curl -sL https://deb.nodesource.com/setup_${NODEJS_VERSION}.x | bash -
RUN apt-get update && \
apt-get install -y --no-install-recommends \
nodejs && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
npm install -g yarn

RUN kanji-config-updmap-sys haranoaji

## install pandoc
# RUN curl -sL -o /tmp/pandoc.deb "https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_DEB_VERSION}-${TARGETARCH}.deb" && \
# dpkg -i /tmp/pandoc.deb && \
# rm /tmp/pandoc.deb
## pandoc2review doesn't support pandoc 3. So just use Debian's version
RUN apt-get update && apt-get -y install pandoc && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

## Playwright support with fonts. This consumes ~350MB
RUN apt-get update && apt-get -y install --no-install-recommends fonts-noto-cjk-extra fonts-noto-color-emoji libatk1.0-0 libatk-bridge2.0-0 libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libgbm1 libpango-1.0-0 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN npm install -g playwright && rm -rf /root/.cache/ms-playwright/firefox* /root/.cache/ms-playwright/webkit* && gem install playwright-runner -N

## set cache folder to work folder (disabled by default)
# RUN mkdir -p /etc/texmf/texmf.d && echo "TEXMFVAR=/work/.texmf-var" > /etc/texmf/texmf.d/99local.cnf
2 changes: 1 addition & 1 deletion update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# 2.3.0 2.4.0 2.5.0 のサポートは終了しました
# 3.0.0〜5.2.0 はDebian 10で凍結し、update反映外とします
versions=(5.3.0 5.4.0 5.5.0 5.6.0 5.7.0 5.8.0)
versions=(5.3.0 5.4.0 5.5.0 5.6.0 5.7.0 5.8.0 5.9.0)

for version in "${versions[@]}"
do
Expand Down

0 comments on commit 20664e7

Please sign in to comment.