Skip to content

Commit

Permalink
Fix compilers linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
chvp committed Jan 11, 2024
1 parent c914970 commit 36488d7
Showing 1 changed file with 21 additions and 23 deletions.
44 changes: 21 additions & 23 deletions dodona-compilers.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,35 @@ FROM python:3.12.1-slim-bullseye
ARG LLVM_VERSION="13.0.0"
ARG LLVM_SHA256="9680c841b5ceffa51f21d0d2ddd7573447b659d1889b83c153b7473342b22a49"

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
cmake \
g++ \
gawk \
gdb \
git \
graphviz \
libfmt-dev \
p7zip-full \
pandoc \
python3 \
python3-pip \
python3-pygments \
wget \
&& rm -rf /var/lib/apt/lists/*

# Install LLVM
RUN wget -O /clang+llvm.7z https://github.com/thomasfaingnaert/llvm-builds/releases/download/${LLVM_VERSION}/clang+llvm-Release+Asserts-${LLVM_VERSION}-x86_64-linux-gnu-ubuntu-20.04.7z && \
# hadolint ignore=DL3008
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \

Check failure on line 8 in dodona-compilers.dockerfile

View workflow job for this annotation

GitHub Actions / compilers

DL3013 warning: Pin versions in pip. Instead of `pip install <package>` use `pip install <package>==<version>` or `pip install --requirement <requirements file>`

Check failure on line 8 in dodona-compilers.dockerfile

View workflow job for this annotation

GitHub Actions / compilers

DL4006 warning: Set the SHELL option -o pipefail before RUN with a pipe in it. If you are using /bin/sh in an alpine image or if your shell is symlinked to busybox then consider explicitly setting your SHELL to /bin/ash, or disable this check

Check failure on line 8 in dodona-compilers.dockerfile

View workflow job for this annotation

GitHub Actions / compilers

SC2039 warning: In POSIX sh, set option pipefail is undefined.
cmake \
g++ \
gawk \
gdb \
git \
graphviz \
libfmt-dev \
p7zip-full \
pandoc \
python3 \
python3-pip \
python3-pygments \
wget && \
rm -rf /var/lib/apt/lists/* && \
wget -nv -O /clang+llvm.7z https://github.com/thomasfaingnaert/llvm-builds/releases/download/${LLVM_VERSION}/clang+llvm-Release+Asserts-${LLVM_VERSION}-x86_64-linux-gnu-ubuntu-20.04.7z && \
set -o pipefail && \
echo "${LLVM_SHA256} /clang+llvm.7z" | sha256sum --check && \
7z x /clang+llvm.7z -o/opt && \
rm /clang+llvm.7z

# Install lit
RUN pip3 install lit psutil
rm /clang+llvm.7z && \
pip3 --no-cache-dir install lit psutil

ENV LLVM_ROOT=/opt/clang+llvm-Release+Asserts-${LLVM_VERSION}-x86_64-linux-gnu-ubuntu-20.04
ENV PATH="${LLVM_ROOT}/bin:${PATH}"

# Dodona-specific config
RUN chmod 711 /mnt
RUN useradd -m runner
RUN chmod 711 /mnt && useradd -m runner
USER runner
RUN ["mkdir", "/home/runner/workdir"]
WORKDIR /home/runner/workdir
Expand Down

0 comments on commit 36488d7

Please sign in to comment.