mirror of
https://github.com/GearsProgress/Poke_Transporter_GB.git
synced 2026-04-25 08:07:56 -05:00
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
# This docker-compose file allows you to pull the devkitpro/devkitarm docker container
|
|
# and use it to build the Poke Transporter GB rom(s).
|
|
#
|
|
# To launch the container itself in the background:
|
|
# docker compose up -d
|
|
# Note the container name being printed in the terminal. In my case it was this: poke_transporter_gb-build-1
|
|
#
|
|
# Then get a terminal into the container like this:
|
|
# docker exec -it poke_transporter_gb-build-1 /bin/bash
|
|
#
|
|
# Now you can build the project inside this terminal.
|
|
|
|
version: "3.5"
|
|
|
|
services:
|
|
build:
|
|
image: ptgb-builder:latest
|
|
working_dir: /usr/Poke_Transporter_GB
|
|
command: tail -f /dev/null
|
|
environment:
|
|
# Set SSH_AUTH_SOCK inside container only if forwarding is possible
|
|
- SSH_AUTH_SOCK=/ssh-agent
|
|
volumes:
|
|
# Mount the project directory (portable)
|
|
- ${COMPOSE_PROJECT_DIR}:/usr/Poke_Transporter_GB
|
|
|
|
# Mount SSH agent only if available (Linux/WSL2)
|
|
- type: bind
|
|
source: ${SSH_AUTH_SOCK:-}
|
|
target: /ssh-agent
|
|
read_only: true
|
|
# Only mount if SSH_AUTH_SOCK is set
|
|
consistency: cached
|
|
|