summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Documentation/BuildInstructions.md5
-rwxr-xr-xMeta/build-image-qemu.sh5
-rw-r--r--Toolchain/.dockerignore1
-rw-r--r--Toolchain/Dockerfile12
4 files changed, 17 insertions, 6 deletions
diff --git a/Documentation/BuildInstructions.md b/Documentation/BuildInstructions.md
index bdd30f5ba0..63e6a49dc4 100644
--- a/Documentation/BuildInstructions.md
+++ b/Documentation/BuildInstructions.md
@@ -10,11 +10,6 @@ Make sure you have all the dependencies installed:
sudo apt install build-essential cmake curl libmpfr-dev libmpc-dev libgmp-dev e2fsprogs qemu-system-i386 qemu-utils
```
-On Docker, install these as well:
-```bash
-sudo apt install wget genext2fs
-```
-
**Fedora**
```bash
sudo dnf install curl cmake mpfr-devel libmpc-devel gmp-devel e2fsprogs @"C Development Tools and Libraries" @Virtualization
diff --git a/Meta/build-image-qemu.sh b/Meta/build-image-qemu.sh
index 10ff5384f9..b26fb1838e 100755
--- a/Meta/build-image-qemu.sh
+++ b/Meta/build-image-qemu.sh
@@ -62,8 +62,11 @@ cleanup() {
if [ $use_genext2fs = 0 ] ; then
printf "unmounting filesystem... "
umount mnt || ( sleep 1 && sync && umount mnt )
+ rmdir mnt
+ else
+ rm -rf mnt
fi
- rmdir mnt
+
if [ "$(uname -s)" = "OpenBSD" ]; then
vnconfig -u "$VND"
elif [ "$(uname -s)" = "FreeBSD" ]; then
diff --git a/Toolchain/.dockerignore b/Toolchain/.dockerignore
new file mode 100644
index 0000000000..72e8ffc0db
--- /dev/null
+++ b/Toolchain/.dockerignore
@@ -0,0 +1 @@
+*
diff --git a/Toolchain/Dockerfile b/Toolchain/Dockerfile
new file mode 100644
index 0000000000..d5bb1296a6
--- /dev/null
+++ b/Toolchain/Dockerfile
@@ -0,0 +1,12 @@
+FROM ubuntu:20.04
+
+RUN DEBIAN_FRONTEND="noninteractive" apt-get update -y && apt-get install -y tzdata
+
+RUN apt-get install -y build-essential cmake curl libmpfr-dev libmpc-dev libgmp-dev e2fsprogs qemu-utils wget genext2fs sudo
+
+RUN mkdir /serenity
+
+WORKDIR /serenity
+
+RUN /bin/bash
+