File tree Expand file tree Collapse file tree 4 files changed +26
-7
lines changed
Expand file tree Collapse file tree 4 files changed +26
-7
lines changed Original file line number Diff line number Diff line change 1- FROM debian
1+ FROM debian:8
22
33RUN apt-get update
44
@@ -24,13 +24,20 @@ RUN apt-get install -y build-essential \
2424RUN 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+ COPY buster.list /etc/apt/sources.list.d
31+ RUN mkdir -p /etc/apt/preferences.d
32+ COPY buster.pref /etc/apt/preferences.d
33+ RUN apt-get update && apt-get install -y jq/buster
2834
2935# 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*
36+ # Unfortunately coredumps on debian:8
37+ # RUN curl -sSL https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.$(uname -m).tar.xz | \
38+ # tar -xJ && \
39+ # mv shellcheck*/shellcheck /usr/local/bin && \
40+ # rm -R shellcheck*
3441
3542# Install Go dependencies
3643RUN ARCH="$(dpkg --print-architecture)" && \
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1+ Package: *
2+ Pin: release a=buster
3+ Pin-Priority: 1
Original file line number Diff line number Diff 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
1316main " $@ "
You can’t perform that action at this time.
0 commit comments