1- FROM ubuntu
1+ FROM ubuntu:22.04
22
33ENV DEBIAN_FRONTEND=noninteractive
44
5- RUN apt update
6- # gcc, ld, make, etc.
7- RUN apt install build-essential -y
8- # bison
9- RUN apt install bison -y
10- # dejagnu
11- RUN apt install dejagnu -y
12- # expat
13- RUN apt install libexpat-dev -y
14- # flex
15- RUN apt install flex -y
16- # git
17- RUN apt install git -y
18- RUN apt install git-email -y
19- RUN git config --global pull.rebase false
20- RUN mkdir /root/.ssh
21- # glib
22- RUN apt install libglib2.0-dev -y
23- # gmp
24- RUN apt install libgmp-dev -y
25- # mpfr
26- RUN apt install libmpfr-dev -y
27- # iasl
28- RUN apt install iasl -y
29- # pixman
30- RUN apt install libpixman-1-dev -y
31- # ninja
32- RUN apt install ninja-build -y
33- # python
34- RUN apt install python3 -y
35- # pkg-config
36- RUN apt install pkg-config -y
37- # texinfo
38- RUN apt install texinfo -y
39- # tmux
40- RUN apt install tmux -y
41- # tzdata
42- RUN apt install tzdata -y
5+ RUN apt-get update && apt-get upgrade -y && apt-get install build-essential -y
6+ RUN apt-get update && apt-get upgrade -y && apt-get install bison -y
7+ RUN apt-get update && apt-get upgrade -y && apt-get install dejagnu -y
8+ RUN apt-get update && apt-get upgrade -y && apt-get install libexpat-dev -y
9+ RUN apt-get update && apt-get upgrade -y && apt-get install flex -y
10+ RUN apt-get update && apt-get upgrade -y && apt-get install git -y
11+ RUN apt-get update && apt-get upgrade -y && apt-get install git-email -y
12+ RUN apt-get update && apt-get upgrade -y && apt-get install libglib2.0-dev -y
13+ RUN apt-get update && apt-get upgrade -y && apt-get install libgmp-dev -y
14+ RUN apt-get update && apt-get upgrade -y && apt-get install libmpfr-dev -y
15+ RUN apt-get update && apt-get upgrade -y && apt-get install iasl -y
16+ RUN apt-get update && apt-get upgrade -y && apt-get install libpixman-1-dev -y
17+ RUN apt-get update && apt-get upgrade -y && apt-get install ninja-build -y
18+ RUN apt-get update && apt-get upgrade -y && apt-get install python3 -y
19+ RUN apt-get update && apt-get upgrade -y && apt-get install python3-venv -y
20+ RUN apt-get update && apt-get upgrade -y && apt-get install pkg-config -y
21+ RUN apt-get update && apt-get upgrade -y && apt-get install texinfo -y
22+ RUN apt-get update && apt-get upgrade -y && apt-get install tmux -y
23+ RUN apt-get update && apt-get upgrade -y && apt-get install tzdata -y
24+ RUN apt-get update && apt-get upgrade -y && apt-get install vim -y
25+ RUN apt-get update && apt-get upgrade -y && apt-get install wget -y
26+
27+ # Put git settings.
28+ WORKDIR /root
29+ RUN mkdir .ssh
30+ RUN mkdir .github
31+
32+ # Set local time.
4333RUN cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
44- # editor
45- RUN apt install vim -y
46- # wget
47- RUN apt install wget -y
4834
4935# GDB
5036WORKDIR /root
@@ -56,7 +42,7 @@ RUN make install
5642
5743# QEMU
5844WORKDIR /root
59- RUN git clone --branch v8.0 .0 --depth 1 --recursive --shallow-submodules --single-branch https://gitlab.com/qemu-project/qemu.git
45+ RUN git clone --branch v8.1 .0 --depth 1 --recursive --shallow-submodules --single-branch https://gitlab.com/qemu-project/qemu.git
6046WORKDIR /root/qemu
6147RUN ./configure --target-list=i386-softmmu CFLAGS="-O0 -g -fno-inline" CXXFLAGS="-O0 -g -fno-inline"
6248RUN make
0 commit comments