Skip to content

Commit

Permalink
Update README (#64)
Browse files Browse the repository at this point in the history
* use POSIX-compatible `if` instead of a Bashism

* update README (improve description, remove broken links)
  • Loading branch information
bartekpacia authored Apr 9, 2024
1 parent bbe3f96 commit f8eeb86
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
27 changes: 20 additions & 7 deletions README.md
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
3 changes: 2 additions & 1 deletion sdk/tools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f8eeb86

Please sign in to comment.