Added Docker Support 44/head
authorpsy <psy@local.lan>
星期六, 24 Jul 2021 10:36:56 +0000 (16:06 +0530)
committerpsy <psy@local.lan>
星期六, 24 Jul 2021 10:36:56 +0000 (16:06 +0530)
Dockerfile [new file with mode: 0644]
README.md
docker-compose.yml [new file with mode: 0644]

diff --git a/Dockerfile b/Dockerfile
new file mode 100644 (file)
index 0000000..2534e1c
--- /dev/null
@@ -0,0 +1,11 @@
+FROM ubuntu:20.04
+ENV DEBIAN_FRONTEND=noninteractive
+
+RUN apt-get update && apt-get -y install build-essential uuid-dev iasl nasm gcc-aarch64-linux-gnu abootimg python3-distutils python3-pil python3-git locales \
+    && rm -rf /var/lib/apt/lists/* \
+    && locale-gen en_US.UTF-8
+ENV LANG en_US.utf8
+WORKDIR /build
+COPY . .
+
+CMD ["/bin/bash"]
index 998354e350127effdb3f67359789b7ebc5b1f0b6..3b2e923fbc831d8d9a50f738803506e62d9b6385 100644 (file)
--- a/README.md
+++ b/README.md
@@ -67,11 +67,15 @@ git clone https://github.com/edk2-porting/edk2-sdm845.git --depth=1
 cd edk2-sdm845
 ```
 
-2.Build this project
+2.1 Build this project (only on linux)
 
 ```bash
 bash build.sh --device DEVICE
 ```
+2.2 For Macos/Windows (you can use docker)
+````bash
+docker-compose run edk2 ./build.sh -d your device
+````
 
 3.Boot the image
 
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644 (file)
index 0000000..2cf28cb
--- /dev/null
@@ -0,0 +1,5 @@
+services:
+  edk2:
+    build: .
+    volumes:
+      - .:/build