annotate Dockerfile @ 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
f97c2100be99 add Dockefile
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 FROM alpine:latest
f97c2100be99 add Dockefile
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
f97c2100be99 add Dockefile
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 ENV QEMU_VERSION=4.0.0
f97c2100be99 add Dockefile
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4
f97c2100be99 add Dockefile
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 ENV DOWNLOAD_TOOLS="wget gnupg tar xz"
f97c2100be99 add Dockefile
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6
f97c2100be99 add Dockefile
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 RUN apk update
f97c2100be99 add Dockefile
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 RUN apk add --no-cache ${DOWNLOAD_TOOLS}
f97c2100be99 add Dockefile
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9
f97c2100be99 add Dockefile
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 RUN wget https://download.qemu.org/qemu-4.0.0.tar.xz &&\
f97c2100be99 add Dockefile
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 tar xvJf qemu-4.0.0.tar.xz
f97c2100be99 add Dockefile
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12
f97c2100be99 add Dockefile
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 ENV BUILD_TOOLS="glib-dev autoconf automake bison flex gcc glib-dev g++ libtool linux-headers make patch python pixman pixman-dev"
f97c2100be99 add Dockefile
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 ENV DEBUG_TOOLS="gdb less"
f97c2100be99 add Dockefile
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 ENV RUNTIME_DEPENDENCIES="glib libstdc++ libbz2"
f97c2100be99 add Dockefile
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16
f97c2100be99 add Dockefile
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 RUN apk add --no-cache --update ${BUILD_TOOLS} &&\
f97c2100be99 add Dockefile
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 apk add --no-cache --update ${RUNTIME_DEPENDENCIES} &&\
f97c2100be99 add Dockefile
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 apk add --no-cache --update ${DEBUG_TOOLS}
f97c2100be99 add Dockefile
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20
f97c2100be99 add Dockefile
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
21
f97c2100be99 add Dockefile
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 RUN cd qemu-4.0.0 &&\
f97c2100be99 add Dockefile
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 ./configure --target-list=i386-softmmu,x86_64-softmmu,arm-softmmu,arm-linux-user --enable-kvm --enable-debug &&\
f97c2100be99 add Dockefile
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 make -j