Skip to content
Snippets Groups Projects
Dockerfile 1.01 KiB
Newer Older
Baruta Daniel Mihail's avatar
wip
Baruta Daniel Mihail committed
FROM ubuntu:20.04

WORKDIR /base
COPY ./base/main.sh .
RUN chmod +x /base/main.sh
RUN ln /base/main.sh /usr/local/bin/bash
Baruta Daniel Mihail's avatar
wip
Baruta Daniel Mihail committed

ENV CHECKER_DATA_DIRECTORY=/data/checker

RUN apt update -yqq
RUN apt install -yqq build-essential
RUN apt install -yqq python3

RUN apt install -yqq bc

# Install checkpatch.
# https://raw.githubusercontent.com/01org/zephyr/master/scripts/checkpatch.pl
# https://github.com/webispy/docker-gerrit-checkpatch/blob/master/Dockerfile
RUN apt install -yqq wget
RUN wget --no-check-certificate https://raw.githubusercontent.com/torvalds/linux/master/scripts/checkpatch.pl -P /usr/bin/
RUN wget --no-check-certificate https://raw.githubusercontent.com/torvalds/linux/master/scripts/spelling.txt -P /usr/bin/
RUN wget --no-check-certificate https://raw.githubusercontent.com/torvalds/linux/master/scripts/const_structs.checkpatch -P /usr/bin/
RUN chmod +x /usr/bin/checkpatch.pl

# Install cpplint.
RUN apt install -yqq python3-pip
RUN yes | pip install cpplint

# Install shellcheck.
RUN apt install -yqq shellcheck