Debian Codegraph @

tools/Dockerfiles/stylecheck

raw
1 ARG BASE_IMAGE="registry.fedoraproject.org/fedora:latest"
2
3 FROM $BASE_IMAGE
4
5 # Install generic dependencies to check style
6 RUN true \
7 && dnf update -y --refresh \
8 && dnf install -y perl ShellCheck python2-pylint python3-pylint \
9 && mkdir -p /home/sandbox \
10 && dnf clean -y all \
11 && rm -rf /usr/share/doc /usr/share/doc-base \
12 /usr/share/man /usr/share/locale /usr/share/zoneinfo \
13 && true
14
15 # Link in the current version of jss from the git repository
16 WORKDIR /home/sandbox
17 COPY . /home/sandbox/jss
18
19 # Perform the style checks
20 WORKDIR /home/sandbox/jss
21 CMD true \
22 && bash ./tools/test_shell_style.sh \
23 && true