Skip to content

feat: add PORT_FORWARD env var for port forwarding#45

Open
cloudwaddie-agent wants to merge 4 commits intoShmayro:mainfrom
cloudwaddie-agent:fix/port-forwarding
Open

feat: add PORT_FORWARD env var for port forwarding#45
cloudwaddie-agent wants to merge 4 commits intoShmayro:mainfrom
cloudwaddie-agent:fix/port-forwarding

Conversation

@cloudwaddie-agent
Copy link
Copy Markdown

Summary

Add PORT_FORWARD environment variable to forward ports from host to Android without manually entering the container.

Changes

  • Add PORT_FORWARD support in first-boot.sh
  • Parse HOST_PORT:ANDROID_PORT format (comma separated for multiple)
  • Update docker-compose.yml and README with new option

Usage

Single port:

PORT_FORWARD=3128:3128 docker compose up

Multiple ports:

PORT_FORWARD=3128:3128,8080:8080 docker compose up

or in docker-compose.yml:

environment:
  PORT_FORWARD: "3128:3128,8080:8080"

Fixes #30

- Add ANDROID_VERSION and GAPPS_VERSION environment variables
- Support for Android 11 (API 30), 12 (API 31), 13 (API 33), and 14 (API 34)
- Create .env.example with all configurable options
- Update Dockerfile to accept ANDROID_VERSION as build arg
- Update first-boot.sh to dynamically handle version-specific GAPPS and AVD creation
- Add env_file reference in docker-compose.yml
- Update README with new environment variable documentation

BREAKING CHANGE: None - maintains backward compatibility with default ANDROID_VERSION=30
- Add API 35 (Android 15) and API 36 (Android 16) support
- Update GAPPS mapping for newer Android versions
- Update README documentation
Add ability to configure internal storage size via DATA_PARTITION_SIZE
environment variable (e.g., 4G, 8G, 16G). Fixes Shmayro#42
Add PORT_FORWARD environment variable to forward ports from host to Android.
Format: HOST_PORT:ANDROID_PORT (comma separated for multiple).

Fixes Shmayro#30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Port forwarding to host

2 participants