Dockerfile for run fastlane image with config only for deploy Android Apps based in a Ubuntu Image
For use this image, change your Android SDK path in [YOUR HOME ANDROID PATH] (Line 89), for something like:
- /Users/USER/Library/Android/ (In Mac)
- /home/USER/Android/ (In some Linux)
- Or your /path/path/AndroidSDK
You can use the path indicate in your Android Project.
Remember that you can add or change the android api levels that you want to download. For this example, only version 25 is used. (Line 95)
docker build . -t fastlane-docker --build-arg USER_ID=$( id -u
docker run -ti -v /YOUR_ANDROID_PROJECT_PATH/:/usr/local/share fastlane-docker bash
In the bash of your container you can run fastlane test to "test" that fastlane works correctly.
Remember that only the first time, the command may take a little time, depending on your internet connection, since fastlane downloads additional libraries such as graddle in the case of Android.