Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions android-build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ All build images extend the `:base` build image. It contains all common utilitie
* GCC (included by build-essential)
* python 2.7
* openJDK-8
* Node.js 11.x
* Ruby 2.3
* Node.js 12.x
* Ruby 2.5.1
* SDKs:
* Android SDK 23/25/27/28
* Android SDK 29/30
* Android NDK r10e
* Android build-tools - _all versions of build tools corresponding to the SDK version are included_

Expand Down
6 changes: 4 additions & 2 deletions android-build/base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:16.04
FROM ubuntu:18.04

# --- Environment variables ---
ENV ANDROID_HOME /opt/android-sdk-linux
Expand Down Expand Up @@ -26,9 +26,11 @@ RUN ruby -v

# --- Install Bundler as the primary package manager for Ruby ---
RUN gem install bundler
# --- Install Rubygems 3.1.4 for compatibility with Bundler 2 ---
RUN gem update --system 3.1.4

# --- Install NodeJS required for react native projects
RUN curl -sL https://deb.nodesource.com/setup_11.x | bash -
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN apt-get -y install nodejs

# --- Install Yarn as an alternative to NPM for package management ---
Expand Down
38 changes: 38 additions & 0 deletions android-build/sdk-30/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
FROM dubit/android-build-image:base

# --- Install the required build packages, tools and SDKs ---
# * To get a list of available packages run: sdkmanager --list

# --- Update the android SDK repositories ---
RUN sdkmanager "platform-tools"

# --- Install android SDK
# * If you are installing multiple SDK packages keep these in descending order!
RUN sdkmanager "platforms;android-30"
RUN sdkmanager "platforms;android-29"

# --- Install build-tools
# * If you are installing multiple build tool packages keep these in descending order!
RUN sdkmanager "build-tools;30.0.3"
RUN sdkmanager "build-tools;29.0.3"

# --- Install Extras
RUN sdkmanager "extras;android;m2repository"
RUN sdkmanager "extras;google;m2repository"
RUN sdkmanager "extras;google;google_play_services"

# --- Install Google APIs
# * If you are installing multiple API packages keep these in descending order!
RUN sdkmanager "add-ons;addon-google_apis-google-23"

RUN useradd -ms /bin/bash builder
USER builder
RUN mkdir ~/.gradle && touch ~/.gradle/gradle.properties

# Set GEM_HOME so that all aspects of gem installations are local to the user we just created to avoid permission issues
ENV GEM_HOME=~/.gem

VOLUME /usr/src/app
WORKDIR /usr/src/app

CMD ls