1 # THIS FILE WAS AUTO-GENERATED
3 # $ lcitool dockerfile --layers all --cross-arch aarch64 debian-12 qemu
5 # https://gitlab.com/libvirt/libvirt-ci
7 FROM docker.io/library/debian:12-slim
9 RUN export DEBIAN_FRONTEND=noninteractive && \
11 apt-get install -y eatmydata && \
12 eatmydata apt-get dist-upgrade -y && \
13 eatmydata apt-get install --no-install-recommends -y \
36 libspice-protocol-dev \
52 python3-sphinx-rtd-theme \
65 eatmydata apt-get autoremove -y && \
66 eatmydata apt-get autoclean -y && \
67 sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
68 dpkg-reconfigure locales && \
69 rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED
71 ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
72 ENV LANG "en_US.UTF-8"
73 ENV MAKE "/usr/bin/make"
74 ENV NINJA "/usr/bin/ninja"
75 ENV PYTHON "/usr/bin/python3"
77 RUN export DEBIAN_FRONTEND=noninteractive && \
78 dpkg --add-architecture arm64 && \
79 eatmydata apt-get update && \
80 eatmydata apt-get dist-upgrade -y && \
81 eatmydata apt-get install --no-install-recommends -y dpkg-dev && \
82 eatmydata apt-get install --no-install-recommends -y \
83 gcc-aarch64-linux-gnu \
86 libasound2-dev:arm64 \
94 libcapstone-dev:arm64 \
96 libcurl4-gnutls-dev:arm64 \
104 libgcrypt20-dev:arm64 \
105 libglib2.0-dev:arm64 \
106 libglusterfs-dev:arm64 \
107 libgnutls28-dev:arm64 \
109 libibverbs-dev:arm64 \
111 libjemalloc-dev:arm64 \
112 libjpeg62-turbo-dev:arm64 \
113 libjson-c-dev:arm64 \
114 liblttng-ust-dev:arm64 \
116 libncursesw5-dev:arm64 \
120 libpipewire-0.3-dev:arm64 \
121 libpixman-1-dev:arm64 \
125 librdmacm-dev:arm64 \
128 libsdl2-image-dev:arm64 \
129 libseccomp-dev:arm64 \
130 libselinux1-dev:arm64 \
132 libsnappy-dev:arm64 \
133 libspice-server-dev:arm64 \
134 libssh-gcrypt-dev:arm64 \
135 libsystemd-dev:arm64 \
136 libtasn1-6-dev:arm64 \
140 libusb-1.0-0-dev:arm64 \
141 libusbredirhost-dev:arm64 \
142 libvdeplug-dev:arm64 \
143 libvirglrenderer-dev:arm64 \
144 libvte-2.91-dev:arm64 \
149 systemtap-sdt-dev:arm64 \
150 zlib1g-dev:arm64 && \
151 eatmydata apt-get autoremove -y && \
152 eatmydata apt-get autoclean -y && \
153 mkdir -p /usr/local/share/meson/cross && \
154 printf "[binaries]\n\
155 c = '/usr/bin/aarch64-linux-gnu-gcc'\n\
156 ar = '/usr/bin/aarch64-linux-gnu-gcc-ar'\n\
157 strip = '/usr/bin/aarch64-linux-gnu-strip'\n\
158 pkgconfig = '/usr/bin/aarch64-linux-gnu-pkg-config'\n\
162 cpu_family = 'aarch64'\n\
164 endian = 'little'\n" > /usr/local/share/meson/cross/aarch64-linux-gnu && \
165 dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
166 mkdir -p /usr/libexec/ccache-wrappers && \
167 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/aarch64-linux-gnu-cc && \
168 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/aarch64-linux-gnu-gcc
170 ENV ABI "aarch64-linux-gnu"
171 ENV MESON_OPTS "--cross-file=aarch64-linux-gnu"
172 ENV QEMU_CONFIGURE_OPTS --cross-prefix=aarch64-linux-gnu-
173 ENV DEF_TARGET_LIST aarch64-softmmu,aarch64-linux-user
174 # As a final step configure the user (if env is defined)
177 RUN if [ "${USER}" ]; then \
178 id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi