Skip to content

Commit 3a6c717

Browse files
committed
only install jazzy on latest ubuntu versions
motivation: jazzy no longer works on older version of ubuntu as ruby is too old changes: update docker to only install jazzy on latest ubuntu versions
1 parent 66fb9c0 commit 3a6c717

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docker/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ RUN apt-get update && apt-get install -y lsof dnsutils netcat-openbsd net-tools
1818

1919
# ruby and jazzy for docs generation
2020
RUN apt-get update && apt-get install -y ruby ruby-dev libsqlite3-dev build-essential
21-
# switch of gem docs building
22-
RUN echo "gem: --no-document" > ~/.gemrc
23-
RUN if [ "${ubuntu_version}" != "xenial" ] ; then gem install jazzy -v 0.13.7 ; fi
21+
# jazzy no longer works on older version of ubuntu as ruby is too old.
22+
RUN if [ "${ubuntu_version}" = "focal" ] ; then echo "gem: --no-document" > ~/.gemrc ; fi
23+
RUN if [ "${ubuntu_version}" = "focal" ] ; then gem install jazzy ; fi
2424

2525
# tools
2626
RUN mkdir -p $HOME/.tools

0 commit comments

Comments
 (0)