Skip to content

Latest commit

 

History

History
62 lines (45 loc) · 1.7 KB

README.adoc

File metadata and controls

62 lines (45 loc) · 1.7 KB

Android and NodeJS image builder

The docker-build-android-nodejs image is provided to ease the building of android artifacts (apk, aap, aar, …​ ) Docker image used during development.

NodeJS support for building Capacitor applications. → Capacitor

Fastlane support for CI/CD (Gitlab-ci, …​)

Environment variables

Two environment variables are available

  • UID: the user identifier of the user that will operate all commands in the container. Default is 1001

  • GID: the group identifier of the user that will operate all commands in the container. Default is 1001

Dockerfile

FROM ghcr.io/r2d2bzh/docker-build-android-nodejs:dev
Important
Replace the tag dev with a tag delivered on the r2d2bzh/docker-build-android-nodejs project.

This docker-compose.yml file will help to easily build and start the development container.

It should contain something close to the following:

docker-compose.yml
  dev:
    build:
      context: dev
      args:
        UID: ${UID}
        GID: ${GID}
    volumes:
      - .:/home/user/dev
Tip

Most of the time the UID variable is already defined by your shell but is not exported. GID must be the numeric identifier of your user default group. Hence:

.profile
export UID
export GID=$(id -g)