From 8e64c47fa1b8fe01f3f51d13a5d3765f5f01eb98 Mon Sep 17 00:00:00 2001 From: Nogarremi Date: Sun, 19 May 2024 14:12:50 -0700 Subject: [PATCH] Add Docker support and instructions --- Dockerfile | 12 ++++++++++++ INSTALL.md | 17 +++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..fba86a5788 --- /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 ede0b41832..62584f6025 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -373,6 +373,23 @@ At this point, you can choose a folder to store pokefirered (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/pokefirered +docker run -w /agbcc -v .:/rom pret/pokefirered ./install.sh /rom +docker run -w /rom -v .:/rom pret/pokefirered make +``` + +For LeafGreen or REV1, add version to the end of the final command as per [Build pokeleafgreen and REV1](#build-pokeleafgreen-and-rev1) +Example: +```bash +docker run -w /rom -v .:/rom pret/pokefirered make leafgreen +``` + + ## Installation