Mercurial > hg > Members > anatofuz > docker-debug-qemu
changeset 0:f97c2100be99
add Dockefile
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 21 May 2019 19:03:30 +0900 |
parents | |
children | 715c14368a98 |
files | Dockerfile |
diffstat | 1 files changed, 24 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Dockerfile Tue May 21 19:03:30 2019 +0900 @@ -0,0 +1,24 @@ +FROM alpine:latest + +ENV QEMU_VERSION=4.0.0 + +ENV DOWNLOAD_TOOLS="wget gnupg tar xz" + +RUN apk update +RUN apk add --no-cache ${DOWNLOAD_TOOLS} + +RUN wget https://download.qemu.org/qemu-4.0.0.tar.xz &&\ + tar xvJf qemu-4.0.0.tar.xz + +ENV BUILD_TOOLS="glib-dev autoconf automake bison flex gcc glib-dev g++ libtool linux-headers make patch python pixman pixman-dev" +ENV DEBUG_TOOLS="gdb less" +ENV RUNTIME_DEPENDENCIES="glib libstdc++ libbz2" + +RUN apk add --no-cache --update ${BUILD_TOOLS} &&\ + apk add --no-cache --update ${RUNTIME_DEPENDENCIES} &&\ + apk add --no-cache --update ${DEBUG_TOOLS} + + +RUN cd qemu-4.0.0 &&\ + ./configure --target-list=i386-softmmu,x86_64-softmmu,arm-softmmu,arm-linux-user --enable-kvm --enable-debug &&\ + make -j