-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile.ci
32 lines (27 loc) · 1.96 KB
/
Dockerfile.ci
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
ARG debianVersion=trixie
# can be local or repo, local adds a file lf_os-toolchain_*_amd64.deb, repo loads from apt repository
ARG toolchainSource=repo
FROM debian:$debianVersion AS build_local
ONBUILD COPY lf_os-toolchain_*_amd64.deb /tmp/lf_os-toolchain.deb
ONBUILD RUN dpkg -i /tmp/lf_os-toolchain.deb ; \
apt-get -qq update && \
apt-get -qq install -y -f --no-install-recommends && \
rm /tmp/lf_os-toolchain.deb
FROM debian:$debianVersion AS build_repo
ONBUILD RUN apt-get -qq update && \
apt-get -qq install --no-install-recommends \
curl gnupg2 ca-certificates apt-transport-https && \
echo "deb [arch=amd64] https://apt.svc.0x0a.network unstable lf-os" \
> /etc/apt/sources.list.d/lf-os.list && \
curl -sSL https://apt.svc.0x0a.network/public_key.gpg | apt-key add - && \
apt-get -qq update && \
apt-get -qq install -y --no-install-recommends lf_os-toolchain
FROM build_$toolchainSource
RUN apt-get -qq update && \
apt-get -qq install -y --no-install-recommends \
xz-utils gdisk python3-distutils curl ca-certificates \
make ninja-build cmake doxygen graphviz qemu-system-x86 ovmf qemu-utils \
libyaml-perl python3 git gcc g++ libgtest-dev && \
ln -s /opt/lf_os/toolchain/bin/ld.lld /usr/local/bin/ld && \
curl -o /usr/local/bin/yq -sSL https://github.com/mikefarah/yq/releases/download/v4.40.5/yq_linux_amd64 && \
chmod +x /usr/local/bin/yq