From 2ec048fef4155fa1c563a6590d06c7788d7e1c19 Mon Sep 17 00:00:00 2001 From: kota2and3kan <47254383+kota2and3kan@users.noreply.github.com> Date: Thu, 28 May 2020 18:25:14 +0900 Subject: [PATCH] Add tzdata into the docker image Since 20.1 a cockroach process will refuse to start up if the tzdata is not available. Please refer the following URL for details. https://github.com/cockroachdb/cockroach/issues/36864 --- cockroachoss/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cockroachoss/Dockerfile b/cockroachoss/Dockerfile index 5d5d8de..63e5b8d 100644 --- a/cockroachoss/Dockerfile +++ b/cockroachoss/Dockerfile @@ -9,8 +9,8 @@ RUN apt update > /dev/null \ FROM ubuntu:20.04 COPY --from=builder-cockroachoss /cockroach-v20.1.0/src/github.com/cockroachdb/cockroach/cockroachoss /usr/local/bin/cockroachoss RUN apt update > /dev/null \ - && apt install -y vim-tiny libncurses5 > /dev/null \ + && DEBIAN_FRONTEND=noninteractive apt install -y vim-tiny libncurses5 tzdata > /dev/null \ && apt-get -y clean > /dev/null \ - && rm -rf /var/lib/apt/lists/* + && rm -rf /var/lib/apt/lists/* WORKDIR /cockroach ENTRYPOINT ["cockroachoss"]