Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/warnyul/docker-android-build-tools
Ubuntu based Docker image for Android SDK Build Tools.
https://github.com/warnyul/docker-android-build-tools
android-build-tools android-sdk docker-container docker-image dockerfile ubuntu-xenial
Last synced: 23 days ago
JSON representation
Ubuntu based Docker image for Android SDK Build Tools.
- Host: GitHub
- URL: https://github.com/warnyul/docker-android-build-tools
- Owner: warnyul
- License: apache-2.0
- Created: 2020-04-14T08:17:40.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-19T19:20:31.000Z (5 months ago)
- Last Synced: 2024-06-20T08:38:09.193Z (5 months ago)
- Topics: android-build-tools, android-sdk, docker-container, docker-image, dockerfile, ubuntu-xenial
- Language: Shell
- Homepage:
- Size: 47.9 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-android-build-tools
![build](https://github.com/warnyul/docker-android-build-tools/workflows/build/badge.svg) ![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/warnyul/android-build-tools/latest) ![Docker Image Size (tag)](https://img.shields.io/docker/image-size/warnyul/android-build-tools/latest) [![License](https://img.shields.io/badge/License-Apache%202.0-green.svg)](LICENSE)
This is an Ubuntu based Docker image and is image only contains Open JDK 17 JDK headless, Android SDK Tools, Android SDK Build Tools and the Platform which version belongs to the Build Tools's version. For instance: `warnyul/android-build-tools:34.0.0` image containts `platform;android-34`, and the `warnyul/android-build-tools:28.0.0` image contains `platform;android-28` and so on.
## Usage
You can use all commands from [Android SDK Tools or Android SDK Build Tools](https://developer.android.com/studio/command-line). You can mount a volume optionally, if you would like to pass files to commands.
```
docker run --rm -v "$(pwd)":"$(pwd)" warnyul/android-build-tools apkanalyzer
```Or if you want to other platforms or other Android SDK components, just use this image as parent, and install the required components:
```
FROM warnyul/android-build-tools:{VERSION or latest}# Install platform tools
RUN yes | sdkmanager "platforms;android-28" "platforms;android-27"```
## Build
```
git clone https://github.com/warnyul/docker-android-build-tools.git
cd docker-android-build-tools
./build.sh --build-tools-version=29.0.3 --latest
```## License
Copyright 2020 Balázs Varga
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.