-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* use POSIX-compatible `if` instead of a Bashism * update README (improve description, remove broken links)
- Loading branch information
1 parent
bbe3f96
commit f8eeb86
Showing
2 changed files
with
22 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,23 @@ | ||
# Android SDK Docker Images | ||
# Docker images with Android SDK | ||
|
||
[![Build Status](https://api.cirrus-ci.com/github/cirruslabs/docker-images-android.svg)](https://cirrus-ci.com/github/cirruslabs/docker-images-android) | ||
|
||
[![](https://images.microbadger.com/badges/version/cirrusci/android-sdk:tools.svg)](https://microbadger.com/images/cirrusci/android-sdk:tools) [![](https://images.microbadger.com/badges/image/cirrusci/android-sdk:tools.svg)](https://microbadger.com/images/cirrusci/android-sdk:tools) | ||
[![Build status][build_badge]][build_link] | ||
|
||
[![](https://images.microbadger.com/badges/version/cirrusci/android-sdk:34.svg)](https://microbadger.com/images/cirrusci/android-sdk:34) [![](https://images.microbadger.com/badges/image/cirrusci/android-sdk:34.svg)](https://microbadger.com/images/cirrusci/android-sdk:34) | ||
You can either [use it in CI](https://cirrus-ci.org/examples/#android) or run | ||
locally via Docker: | ||
|
||
[![](https://images.microbadger.com/badges/version/cirrusci/android-sdk:34-ndk.svg)](https://microbadger.com/images/cirrusci/android-sdk:34-ndk) [![](https://images.microbadger.com/badges/image/cirrusci/android-sdk:34-ndk.svg)](https://microbadger.com/images/cirrusci/android-sdk:34-ndk) | ||
|
||
```console | ||
docker run --rm -it \ | ||
--volume "$PWD:/build" \ | ||
--workdir /build \ | ||
ghcr.io/cirruslabs/android-sdk:34 \ | ||
./gradlew :app:assembleDebug | ||
``` | ||
|
||
The example above mounts current working directory and runs a Gradle build. | ||
|
||
## GitHub Container Registry | ||
|
||
https://github.com/cirruslabs/docker-images-android/pkgs/container/android-sdk | ||
|
||
[build_badge]: https://api.cirrus-ci.com/github/cirruslabs/docker-images-android.svg | ||
[build_link]: https://cirrus-ci.com/github/cirruslabs/docker-images-android |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,4 +44,5 @@ RUN set -o xtrace \ | |
&& git config --global user.email "[email protected]" \ | ||
&& git config --global user.name "Cirrus CI" | ||
|
||
RUN if [[ $(uname -m) == "x86_64" ]] ; then sdkmanager emulator ; fi | ||
# emulator is not available on linux/arm64 (https://issuetracker.google.com/issues/227219818) | ||
RUN if [ $(uname -m) == "x86_64" ]; then sdkmanager emulator ; fi |