diff --git a/README.md b/README.md new file mode 100644 index 0000000..a6c41c6 --- /dev/null +++ b/README.md @@ -0,0 +1,35 @@ +# Dummy Android + +## Requirements + +- Android SDK +- Docker (18.09.1+) +- Docker Composer (1.21.0+) + +## Configuration + +By default, Android SDK is expected under `~/android/sdk`. +It is possible to adapt this path in `docker-compose.yml`. +But it may also be specified in your `local.properties`! + +## Usage + +The following command should build (if required) and start a shell session inside the container: + +``` +docker-compose --compatibility run --rm default +``` + +From there, Gradle and Fastlane should work as expected: + +``` +./gradlew tasks +fastlane lanes +``` + +Most importantly, Fastlane or the whole bundle can be updated: + +``` +bundle update fastlane +bundle update +``` diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..aa08d07 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,30 @@ +version: '3' +services: + default: + build: + context: lazyDir + dockerfile: centos7.Dockerfile + args: + uid: "${_UID:-1000}" + gid: "${_GID:-1000}" + volumes: + - .:/home/android/workspace + - ~/android/sdk:/opt/android/sdk + - ~/.gradle:/home/android/.gradle + working_dir: /home/android/workspace + stdin_open: true + tty: true + hostname: build-android.local + container_name: build-android.local + command: bash + networks: + - bridge + deploy: + resources: + limits: + cpus: '1.5' + memory: 1280M + +networks: + bridge: + external: true