From 75373b5484f9a859d52b10a346fa61d87ea7485e Mon Sep 17 00:00:00 2001 From: David Garcia Tort Date: Tue, 31 Dec 2019 16:44:31 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20Add=20docker=20development=20env?= =?UTF-8?q?ironment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 21 +++++++++++++++++++++ docker-compose.yml | 8 ++++++++ 2 files changed, 29 insertions(+) create mode 100644 docker-compose.yml diff --git a/README.md b/README.md index 6bf8c47a..d96cbb4b 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,27 @@ You will need devkitPro, devkitA64, libnx and all SDL2 libraries for switch deve Clone (**recursively!**) this repo (uses libstratosphere and Plutonium submodules) and hit `make` in root. It should build everything and generate a `titles` folder ready for use inside `SdOut`. Using `make dev` instead of regular `make` will compile uLaunch in debug mode, which makes the backend process display a debug console and a special menu before usual boot to perform special tasks. This is only meant to be used by developers. + +### Docker + +A Docker switch development environment is included in order to make it easier to compile the project. + + # Run environment + $ docker-compose up -d + + # Connect to the environment + $ docker-compose exec switch bash + + # Update packages + $ dkp-pacman -Syu + +Once we are connected inside, we can run the commands: + + # Development build + $ make dev + + # Production build + $ make ## Credits diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..e278a50a --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +version: "3.7" +services: + switch: + image: devkitpro/devkita64 + tty: true + working_dir: /root/src + volumes: + - ./:/root/src \ No newline at end of file