Sign inSign up

dfrankov/docker-android-net-sdk

By dfrankov

•Updated about 2 years ago

A Docker image with .NET SDK and OpenJDK for building and running Android applications using .NET.

Image
Languages & frameworks
Developer tools
0

803

dfrankov/docker-android-net-sdk repository overview

.NET SDK with Android and OpenJDK Docker Image Description

This Docker image provides a complete environment for developing and building .NET applications for Android. It includes the .NET SDK 8.0, OpenJDK 17, and the Android SDK with necessary tools and build components. This image is ideal for CI/CD pipelines and local development setups targeting Android platforms. Features

.NET SDK 8.0: Official .NET SDK for building and running .NET applications.
OpenJDK 17: Java Development Kit for Android development.
Android SDK: Includes essential tools, platform tools, and build tools for Android development.
Multiple Build Tools: Supports multiple Android build tools and platforms.
Command-Line Tools: Includes Android SDK command-line tools for managing SDK components.

Installed Components

.NET SDK: 8.0
OpenJDK: 17
Android SDK Components:
    Command-line tools
    Platform tools
    Build tools (version 34.0.0)
    Android platform (API level 34)

Usage

This image is designed to be used in CI/CD pipelines and for local development. It provides all necessary components to build and test .NET applications for Android (.net 8.0).

Example Usage

To build a .NET project targeting Android using this image, you can use the following Docker commands:

⁠Build the Docker image

docker build -t dfrankov/dotnet-android-sdk:latest .

⁠Run a container using the built image

docker run -it --rm -v $(pwd):/source -w /source dfrankov/dotnet-android-sdk:latest /bin/bash

⁠Inside the container, build your project

dotnet build -c Release -o /app dotnet publish -c Release -o /app

Environment Variables

ANDROID_HOME: Path to the Android SDK home directory.
ANDROID_SDK_ROOT: Root directory of the Android SDK.
ADB_INSTALL_TIMEOUT: Timeout for ADB installations.

Building the Image

To build the Docker image locally, use the following command:

docker build -t dfrankov/dotnet-android-sdk:latest .

Tag summary

Content type

Image

Digest

sha256:4afd457a2…

Size

1.2 GB

Last updated

about 2 years ago

docker pull dfrankov/docker-android-net-sdk