Skip to content

Commit 8d23ffb

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

File tree

4 files changed

+24
-6
lines changed

4 files changed

+24
-6
lines changed

ci/container/Dockerfile

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
FROM debian
1+
FROM debian:8
2+
3+
# We need latest jq from debian buster for date support.
4+
COPY buster.list /etc/apt/sources.list.d
5+
RUN mkdir -p /etc/apt/preferences.d
6+
COPY buster.pref /etc/apt/preferences.d
27

38
RUN apt-get update
49

@@ -27,10 +32,11 @@ RUN apt-get install -y gettext-base
2732
RUN apt-get install -y jq git rsync
2833

2934
# 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*
35+
# Unfortunately coredumps on debian:8
36+
#RUN curl -sSL https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.$(uname -m).tar.xz | \
37+
# tar -xJ && \
38+
# mv shellcheck*/shellcheck /usr/local/bin && \
39+
# rm -R shellcheck*
3440

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

ci/container/buster.list

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# deb http://snapshot.debian.org/archive/debian/20200514T145000Z buster main
2+
deb http://deb.debian.org/debian buster main
3+
# deb http://snapshot.debian.org/archive/debian-security/20200514T145000Z buster/updates main
4+
deb http://security.debian.org/debian-security buster/updates main
5+
# deb http://snapshot.debian.org/archive/debian/20200514T145000Z buster-updates main
6+
deb http://deb.debian.org/debian buster-updates main

ci/container/buster.pref

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Package: jq
2+
Pin: release a=buster
3+
Pin-Priority: 900

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)