Added Docker Support

This commit is contained in:
psy 2021-07-24 16:06:56 +05:30
parent cbbe081a7e
commit ecd03f8f0d
3 changed files with 21 additions and 1 deletions

11
Dockerfile Normal file
View File

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

View File

@ -67,11 +67,15 @@ git clone https://github.com/edk2-porting/edk2-sdm845.git --depth=1
cd edk2-sdm845 cd edk2-sdm845
``` ```
2.Build this project 2.1 Build this project (only on linux)
```bash ```bash
bash build.sh --device DEVICE 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 3.Boot the image

5
docker-compose.yml Normal file
View File

@ -0,0 +1,5 @@
services:
edk2:
build: .
volumes:
- .:/build