Coder Social home page Coder Social logo

docker-react-native's Introduction

React Native builder (android) based on Arch Linux. Android platforms and sdk build tools for most popular react-native modules included.

There are two versions of builder: -min and full which contains more android platforms and sdk build tools.

Building

If you are using minimal image check 'Android support library' section first.

git clone https://.../myproject.git
cd myproject
yarn
cd android
./gradlew assembleRelease

Both images

Android SDK

  • latest

Android platform tools

  • latest

Minimal image (-min)

Contains only required packages for building basic projects with no third-party modules. In most cases you will need to install extra platforms and sdk build-tools with pacman or use this image as basic for your own image.

Packages

All package versions are recent for building date.

  • nodejs
  • yarn
  • npm
  • watchman
  • openjdk8
  • git

Platforms

  • 26

SDK build tools

  • 26.0.3

You can install extra sdk build tools with pacman:

pacman --noconfirm -Sy android-sdk-build-tools-25.0.1

(x.0.0 is named android-sdk-build-tools-x)

Android support library

Support library is available in Google maven repository now. Simply add this repository to android/build.gradle:

allprojects {
    repositories {
        ...
        maven { url 'https://maven.google.com' }
        ...
    }
}

...or install with pacman:

pacman --noconfirm -Sy android-support-repository

Google repository

Install with pacman:

pacman --noconfirm -Sy android-google-repository

Full image

Contains much more android platforms, sdk build tools and compilers for npm native modules.

Packages

All package versions are recent for building date.

  • nodejs
  • yarn
  • npm
  • watchman
  • openjdk8
  • git
  • fastlane
  • ruby (for fastlane)
  • python2 (for building some npm deps)
  • make (for building some npm deps)
  • gcc (for building some npm deps)

Platforms

  • 23
  • 24
  • 25
  • 26
  • 27
  • 28

SDK build tools

  • 23.0.1
  • 23.0.3
  • 25.0.0
  • 25.0.2
  • 25.0.3
  • 26.0.1
  • 26.0.2
  • 26.0.3
  • 27.0.3
  • 28.0.2

You can install extra sdk build tools with pacman:

pacman --noconfirm -Sy android-sdk-build-tools-25.0.1

(x.0.0 is named android-sdk-build-tools-x)

Support library

  • latest

Google repository

  • latest

Fastlane

You should use fastlane. It's really cool!

Installing extra packages

Arch Linux packages can be found here

pacman --noconfirm -Sy android-udev

Some extra packages for mobile development (android-ndk etc.) are available here

pacman --noconfirm -Sy react-native-cli android-ndk

docker-react-native's People

Contributors

farwayer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

docker-react-native's Issues

pritunl/archlinux no longer maintained

I wanted to add Android SDK Build Tools 28.0.3 into Dockerfile. The problem with Dockerfile is that it uses pritunl/archlinux as parent image and that is no longer maintained. It is using http://mirror.pritunl.com/archlinux/ as the package mirror, but that URL gives 404 now.

Maybe it would be time to switch into another parent image.

Request: Node LTS version

Just as a possible input, it would be great to have a version with Node.js LTS (nodejs-lts-carbon instead of nodejs).

Sometimes packages are not yet compatible with the newest version of node. E.g. realm does not support version 10 yet. Hence any project using it can not be built with this image.

We did this in a fork and it works well with the other packages (like npm and yarn).

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.