Coder Social home page Coder Social logo

saschpe / docker-android-ndk Goto Github PK

View Code? Open in Web Editor NEW
33.0 5.0 5.0 40 KB

Android NDK Docker container including CMake based on Alpine Linux

Home Page: https://hub.docker.com/r/saschpe/android-ndk

License: Apache License 2.0

Shell 81.03% Dockerfile 18.97%
android android-development android-sdk android-ndk docker docker-container alpine-linux

docker-android-ndk's Introduction

Android NDK OCI / Docker image

License GitHub Workflow Status Docker Pulls Docker Image Size (latest by date)

Android Native Development Kit (NDK) OCI image including CMake based on Docker image saschpe/android-sdk.

Android SDK, NDK, CMake and JDK support

The following JDK and Android SDK API level combinations are currently available:

11 17 21 22
31
32
33
34
  • Android NDK versions: 25.2.9519653 and 26.2.11394342
  • CMake version: 3.22.1

Usage

Use like you would any other base image:

FROM saschpe/android-ndk
RUN sdkmanager --install emulator

Building

These scripts simplify various tasks related to container building and publishing:

./scripts/build --help

License

Copyright 2017 Sascha Peilicke

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 at

   http://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.

docker-android-ndk's People

Contributors

saschpe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

docker-android-ndk's Issues

Build in VM

Hi,

I tried to build from the Dockerfile on a Linux x64 VM with 4GB of ram but always failed. I am getting the error below. How much RAM do i actually need to do the build. Thank you.

Sending build context to Docker daemon  5.959MB
Step 1/9 : ARG jdk=11.0.15_10
Step 2/9 : ARG android_api=33
Step 3/9 : FROM saschpe/android-sdk:${android_api}-jdk${jdk}
 ---> 4ce09bc2ccc1
Step 4/9 : ARG cmake=3.18.1
 ---> Using cache
 ---> 0746681ba13c
Step 5/9 : ARG ndk=25.0.8775105
 ---> Using cache
 ---> 5d15c3b40e4c
Step 6/9 : LABEL maintainer="Sascha Peilicke <[email protected]"
 ---> Using cache
 ---> 089b772e16af
Step 7/9 : LABEL description="Android NDK ${ndk} with CMake ${cmake} on SDK ${android_api} using JDK ${jdk}"
 ---> Using cache
 ---> 30d41c36416a
Step 8/9 : ENV NDK_ROOT "${ANDROID_SDK_ROOT}/ndk/${ndk}"
 ---> Using cache
 ---> a72c4a6eaa1b
Step 9/9 : RUN sdkmanager --install         "cmake;${cmake}"         "ndk;${ndk}"
 ---> Running in b79604f9c80e
[0.003s][warning][os,thread] Failed to start thread - pthread_create failed (EPERM) for attributes: stacksize: 1024k, guardsize: 4k, detached.
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Cannot create worker GC thread. Out of system resources.
# An error report file with more information is saved as:
# //hs_err_pid7.log
The command '/bin/sh -c sdkmanager --install         "cmake;${cmake}"         "ndk;${ndk}"' returned a non-zero code: 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.