File tree 2 files changed +19
-7
lines changed
2 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 1
- FROM debian
1
+ FROM debian:8
2
2
3
3
RUN apt-get update
4
4
@@ -24,13 +24,22 @@ RUN apt-get install -y build-essential \
24
24
RUN apt-get install -y gettext-base
25
25
26
26
# 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 curl -sSOL http://http.us.debian.org/debian/pool/main/libo/libonig/libonig5_6.9.1-1_$(dpkg --print-architecture).deb && \
31
+ dpkg -i libonig*.deb && \
32
+ curl -sSOL http://http.us.debian.org/debian/pool/main/j/jq/libjq1_1.5+dfsg-2+b1_$(dpkg --print-architecture).deb && \
33
+ dpkg -i libjq*.deb && \
34
+ curl -sSOL http://http.us.debian.org/debian/pool/main/j/jq/jq_1.5+dfsg-2+b1_$(dpkg --print-architecture).deb && \
35
+ dpkg -i jq*.deb && rm *.deb
28
36
29
37
# 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*
38
+ # Unfortunately coredumps on debian:8 so disabled for now.
39
+ # RUN curl -sSL https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.$(uname -m).tar.xz | \
40
+ # tar -xJ && \
41
+ # mv shellcheck*/shellcheck /usr/local/bin && \
42
+ # rm -R shellcheck*
34
43
35
44
# Install Go dependencies
36
45
RUN ARCH="$(dpkg --print-architecture)" && \
Original file line number Diff line number Diff line change @@ -7,7 +7,10 @@ main() {
7
7
eslint --max-warnings=0 --fix $( git ls-files " *.ts" " *.tsx" " *.js" )
8
8
stylelint $( git ls-files " *.css" )
9
9
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
11
14
}
12
15
13
16
main " $@ "
You can’t perform that action at this time.
0 commit comments