Giter Club home page Giter Club logo

docker_node_android's Introduction

node android docker image

Docker Build (Debian) Docker Build (Alpine) Docker Pulls Latest Tag

Base docker image with node and android for ionic or cordova.

Github repository: abcfy2/docker_node_android

Supported tags and respective Dockerfile links

Also, all tags should append -java8/java11 to use JAVA 8 or 11, if not provided, default should be JAVA 8.

Usage

docker run --rm -v `pwd`:/app -w /app abcfy2/node_android npx -p ionic -p cordova -- ionic build ...

Gitlab CI example:

variables:
  GRADLE_OPTS: "-Dorg.gradle.daemon=false"

build:
  image: abcfy2/node_android:<tag>
  script:
    - npm ci
    - npx -p ionic -p cordova -- ionic cordova build android --prod --release ...

Working with Gitlab CI cache example:

variables:
  ANDROID_SDK_ROOT: "${CI_PROJECT_DIR}/android-sdk"
  ANDROID_HOME: "${CI_PROJECT_DIR}/android-sdk"
  NPM_CONFIG_CACHE: "${CI_PROJECT_DIR}/npm_cache"
  GRADLE_USER_HOME: "${CI_PROJECT_DIR}/gradle_cache"
  GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dfile.encoding=UTF-8"

default:
  before_script:
    - yes | sdkmanager --sdk_root="${ANDROID_SDK_ROOT}" --licenses || true
  after_script:
    - GRADLE_WRAPPER_DIR="${GRADLE_USER_HOME:-${HOME}/.gradle}/wrapper"
    - '[ -d "${GRADLE_WRAPPER_DIR}" ] && find "${GRADLE_WRAPPER_DIR}" -name "gradle-*.zip" -delete || true'
  cache:
    paths:
      - ${ANDROID_SDK_ROOT}
      - ${NPM_CONFIG_CACHE}
      - ${GRADLE_USER_HOME}/caches/
      - ${GRADLE_USER_HOME}/wrapper/
# ... your build steps here

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.