Skip to content

Commit 1e48a0c

Browse files
committed
Downgrade CI to Debian 8 for glibc 2.19
Closes #1656
1 parent 761c203 commit 1e48a0c

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

ci/container/Dockerfile

+16-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM debian
1+
FROM debian:8
22

33
RUN apt-get update
44

@@ -24,13 +24,23 @@ RUN apt-get install -y build-essential \
2424
RUN apt-get install -y gettext-base
2525

2626
# Misc build dependencies.
27-
RUN apt-get install -y jq git rsync
27+
RUN apt-get install -y git rsync
28+
29+
# We need latest jq from debian buster for date support.
30+
RUN ARCH="$(dpkg --print-architecture)" && \
31+
curl -sSOL http://http.us.debian.org/debian/pool/main/libo/libonig/libonig5_6.9.1-1_$ARCH.deb && \
32+
dpkg -i libonig*.deb && \
33+
curl -sSOL http://http.us.debian.org/debian/pool/main/j/jq/libjq1_1.5+dfsg-2+b1_$ARCH.deb && \
34+
dpkg -i libjq*.deb && \
35+
curl -sSOL http://http.us.debian.org/debian/pool/main/j/jq/jq_1.5+dfsg-2+b1_$ARCH.deb && \
36+
dpkg -i jq*.deb && rm *.deb
2837

2938
# Installs shellcheck.
30-
RUN curl -sSL https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.$(uname -m).tar.xz | \
31-
tar -xJ && \
32-
mv shellcheck*/shellcheck /usr/local/bin && \
33-
rm -R shellcheck*
39+
# Unfortunately coredumps on debian:8 so disabled for now.
40+
#RUN curl -sSL https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.$(uname -m).tar.xz | \
41+
# tar -xJ && \
42+
# mv shellcheck*/shellcheck /usr/local/bin && \
43+
# rm -R shellcheck*
3444

3545
# Install Go dependencies
3646
RUN ARCH="$(dpkg --print-architecture)" && \

ci/dev/lint.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ main() {
77
eslint --max-warnings=0 --fix $(git ls-files "*.ts" "*.tsx" "*.js")
88
stylelint $(git ls-files "*.css")
99
tsc --noEmit
10-
shellcheck -e SC2046,SC2164,SC2154 $(git ls-files "*.sh")
10+
# See comment in ./ci/container/Dockerfile
11+
if [[ ! ${CI-} ]]; then
12+
shellcheck -e SC2046,SC2164,SC2154 $(git ls-files "*.sh")
13+
fi
1114
}
1215

1316
main "$@"

0 commit comments

Comments
 (0)