Build: Add Dockerfile

This commit is contained in:
Yonatan Goldschmidt 2020-05-21 23:04:07 +03:00 committed by Andreas Kling
parent 27913154ea
commit 00c0650f96
Notes: sideshowbarker 2024-07-19 06:15:59 +09:00
4 changed files with 17 additions and 6 deletions

View file

@ -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

View file

@ -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

1
Toolchain/.dockerignore Normal file
View file

@ -0,0 +1 @@
*

12
Toolchain/Dockerfile Normal file
View file

@ -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