From 41ac30d3d39fe3e2d873182b66dfe6ea19285290 Mon Sep 17 00:00:00 2001 From: Nogarremi Date: Sun, 19 May 2024 13:48:04 -0700 Subject: [PATCH] Add Docker support and instructions --- Dockerfile | 12 ++++++++++++ INSTALL.md | 9 +++++++++ 2 files changed, 21 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000000..fba86a57888a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM ubuntu:jammy + +RUN apt-get update -y +RUN apt-get install -y \ + git \ + build-essential \ + pkg-config \ + binutils-arm-none-eabi \ + libpng-dev +RUN git clone https://github.com/pret/agbcc && cd agbcc && ./build.sh +RUN hash -r + diff --git a/INSTALL.md b/INSTALL.md index 920e03c71366..85e1da4a9634 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -379,6 +379,15 @@ At this point, you can choose a folder to store pokeemerald (and agbcc) into. If If this works, then proceed to [Installation](#installation). Otherwise, ask for help on Discord or IRC (see [README.md](README.md)). +## Docker +A Dockerfile is provided for your convenience. To begin, setup docker on your local machine following the instructions at https://docs.docker.com/desktop/. Then, run: + +```bash +docker build . -t pret/pokeemerald +docker run -w /agbcc -v .:/rom pret/pokeemerald ./install.sh /rom +docker run -w /rom -v .:/rom pret/pokeemerald make +``` + ## Installation