From edc4555381357f433c4c048608d4c1dbb6a44fa5 Mon Sep 17 00:00:00 2001 From: tomer doron Date: Mon, 18 Oct 2021 10:42:42 -0700 Subject: [PATCH] fix jazzy issues on older versions of ubuntu --- docker/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 8f6e471..496cfea 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -18,10 +18,9 @@ RUN apt-get update && apt-get install -y lsof dnsutils netcat-openbsd net-tools # ruby and jazzy for docs generation RUN apt-get update && apt-get install -y ruby ruby-dev libsqlite3-dev build-essential -# switch of gem docs building -RUN echo "gem: --no-document" > ~/.gemrc # jazzy no longer works on xenial as ruby is too old. -RUN if [ "${ubuntu_version}" != "xenial" ] ; then gem install jazzy; fi +RUN if [ "${ubuntu_version}" = "focal" ] ; then echo "gem: --no-document" > ~/.gemrc; fi +RUN if [ "${ubuntu_version}" = "focal" ] ; then gem install jazzy; fi # tools RUN mkdir -p $HOME/.tools