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