From 9d0b81fb301aa187577d5187027c1b484de8c161 Mon Sep 17 00:00:00 2001 From: Sean Busbey Date: Sat, 14 Sep 2019 14:03:02 -0500 Subject: [PATCH] HBASE-23023 upgrade shellcheck used in dockerfile (#624) Signed-off-by: stack (cherry picked from commit 1cb4f687c1772d6b80d383247978efd7b05520d7) (cherry picked from commit d9b4982ad4048b08f132fabf3bf854425cedafce) Change-Id: I6ac5beaed2cf85eb79e337a42094cc6ceb1fbdda --- dev-support/docker/Dockerfile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/dev-support/docker/Dockerfile b/dev-support/docker/Dockerfile index da673f76bdd6..6a3f37783317 100644 --- a/dev-support/docker/Dockerfile +++ b/dev-support/docker/Dockerfile @@ -32,13 +32,23 @@ RUN apt-get -q update && apt-get -q install --no-install-recommends -y \ libc6-dev \ ruby \ ruby-dev \ - shellcheck \ wget \ && \ gem install --no-document rake rubocop ruby-lint ENV FINDBUGS_HOME /usr +#### +# Install shellcheck +### +RUN mkdir -p /opt/shellcheck && \ + curl -L -s -S \ + https://storage.googleapis.com/shellcheck/shellcheck-stable.linux.x86_64.tar.xz \ + -o /opt/shellcheck.tar.xz && \ + tar xJf /opt/shellcheck.tar.xz --strip-components 1 -C /opt/shellcheck && \ + ln -s /opt/shellcheck/shellcheck /usr/bin/shellcheck && \ + rm -f /opt/shellcheck.tar.xz + ### # Avoid out of memory errors in builds ###