Skip to content

Commit ee4309e

Browse files
authored
upgrade shellcheck version (#28021)
test=develop
1 parent c226b2e commit ee4309e

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

tools/dockerfile/Dockerfile.ubuntu

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,13 @@ RUN apt-get update && \
2929
python-matplotlib \
3030
automake locales clang-format swig \
3131
liblapack-dev liblapacke-dev \
32-
net-tools libtool module-init-tools shellcheck && \
32+
net-tools libtool module-init-tools && \
3333
apt-get clean -y
3434

35+
RUN wget https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.x86_64.tar.xz -O shellcheck-v0.7.1.linux.x86_64.tar.xz && \
36+
tar -xf shellcheck-v0.7.1.linux.x86_64.tar.xz && cp shellcheck-v0.7.1/shellcheck /usr/bin/shellcheck && \
37+
rm -rf shellcheck-v0.7.1.linux.x86_64.tar.xz shellcheck-v0.7.1
38+
3539
# Downgrade gcc&&g++
3640
<install_gcc>
3741

tools/manylinux1/Dockerfile.cuda10_cudnn7_gcc8_ubuntu16

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ RUN rm -rf /temp_gcc82 && rm -rf /gcc-8.2.0.tar.xz && rm -rf /gcc-8.2.0
2626
RUN apt-get update && \
2727
apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
2828
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
29-
xz-utils tk-dev libffi-dev liblzma-dev openmpi-bin openmpi-doc libopenmpi-dev shellcheck
29+
xz-utils tk-dev libffi-dev liblzma-dev openmpi-bin openmpi-doc libopenmpi-dev
30+
31+
RUN wget https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.x86_64.tar.xz -O shellcheck-v0.7.1.linux.x86_64.tar.xz && \
32+
tar -xf shellcheck-v0.7.1.linux.x86_64.tar.xz && cp shellcheck-v0.7.1/shellcheck /usr/bin/shellcheck && \
33+
rm -rf shellcheck-v0.7.1.linux.x86_64.tar.xz shellcheck-v0.7.1
3034

3135
# gcc8.2
3236
RUN wget -q https://paddle-docker-tar.bj.bcebos.com/home/users/tianshuo/bce-python-sdk-0.8.27/gcc-8.2.0.tar.xz && \

0 commit comments

Comments
 (0)