-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (17 loc) · 1.03 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM archlinux as build_env
RUN pacman --disable-download-timeout --noconfirm -Syyu
RUN pacman --disable-download-timeout --noconfirm --needed -S base-devel \
fish llvm cmake lld git make gcc fmt nlohmann-json pugixml clang python sudo python-intelhex cli11 boost
ARG PACKMANEXTRAPACKAGES=""
RUN pacman --disable-download-timeout --noconfirm --needed -S base-devel $(echo "$PACKMANEXTRAPACKAGES")
RUN useradd trizenuser --create-home
RUN echo "trizenuser ALL=(ALL) NOPASSWD: /usr/bin/pacman" > "/etc/sudoers.d/allow_nobody_to_pacman"
RUN su trizenuser -c "/bin/sh -c 'cd ~ && git clone https://aur.archlinux.org/trizen.git && cd trizen && makepkg --noconfirm -si'"
RUN su trizenuser -c "/bin/sh -c 'trizen -S --noinfo --noconfirm inja jlink-software-and-documentation'"
ARG TRIZENEXTRAPACKAGES=""
RUN su trizenuser -c "/bin/sh -c 'trizen -S --noinfo --noconfirm $TRIZENEXTRAPACKAGES'"
RUN git config --global --add safe.directory /project
RUN mkdir /project
WORKDIR /project
FROM build_env as build
ENTRYPOINT /project/kvasir/docker_build.sh