1 # THIS FILE WAS AUTO-GENERATED
3 # $ lcitool dockerfile --layers all 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 \
86 libspice-protocol-dev \
97 libvirglrenderer-dev \
119 python3-sphinx-rtd-theme \
134 eatmydata apt-get autoremove -y && \
135 eatmydata apt-get autoclean -y && \
136 sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
137 dpkg-reconfigure locales && \
138 rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED && \
139 dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
140 mkdir -p /usr/libexec/ccache-wrappers && \
141 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
142 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \
143 ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
145 ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
146 ENV LANG "en_US.UTF-8"
147 ENV MAKE "/usr/bin/make"
148 ENV NINJA "/usr/bin/ninja"
149 ENV PYTHON "/usr/bin/python3"
150 # netmap/cscope/global
151 RUN DEBIAN_FRONTEND=noninteractive eatmydata \
152 apt install -y --no-install-recommends \
155 linux-headers-generic
156 RUN git clone https://github.com/luigirizzo/netmap.git /usr/src/netmap
157 RUN cd /usr/src/netmap && git checkout v11.3
158 RUN cd /usr/src/netmap/LINUX && \
159 ./configure --no-drivers --no-apps \
160 --kernel-dir=$(ls -d /usr/src/linux-headers-*-$(dpkg --print-architecture)) \
162 ENV QEMU_CONFIGURE_OPTS --enable-netmap
163 # As a final step configure the user (if env is defined)
166 RUN if [ "${USER}" ]; then \
167 id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi