Sign inSign up

shareai/meteor-android-build

By shareai

•Updated about 6 years ago

Image
0

144

shareai/meteor-android-build repository overview

⁠Meteor Android Docker image

This repository contains a Docker image with an environment prepared to build Cordova-based Android APKs from Meteor projects.

Please make sure you've actually added the android platform to your Meteor app using the meteor add-platform command or the build process will fail.

⁠Usage

This image requires a couple of inputs from the user:

  • The Meteor app that needs to be built. It should be mounted on /app.
  • The keystore that will be used to sign the APK file. It should be mounted on /keys/keystore. If you do not mount your own keystore the image will use a default one created on image build.

Using the default keystore could come in handy in a development environment but should never be relied on when building the app for production.

The generated APK file will be placed under /build. You should mount this volume on your host to be able to actually recover it after the build finishes.

⁠Configuration variables
NameDescriptionDefault
APP_SERVERLocation where mobile builds connect to the Meteor serverRequired
KEYSTORE_ALIASAlias of the keypair that will sign the APKdefaultkey
KEYSTORE_KEYPASSPassword to access the keypair given by the previous aliaspasswd
KEYSTORE_STOREPASSPassword to access the keystore that contains the keypairpasswd
⁠Example commands

The following command builds the Meteor app found on /path/to/meteor/app using the default keystore. The APK file is configured to connect to the remote Meteor server found on example.com. It will be placed under the host's current working directory.

docker run --rm -it -e APP_SERVER=example.com -v /path/to/meteor/app:/app -v $(pwd):/build shareai/meteor-android-build

This does the same as above but uses an externally defined keystore located on /path/to/keystore.

docker run --rm -it -e APP_SERVER=example.com -e KEYSTORE_ALIAS=myalias -e KEYSTORE_KEYPASS=mykeypass -e KEYSTORE_STOREPASS=mystorepass -v /path/to/keystore:/keys/keystore:ro -v /path/to/meteor/app:/app -v $(pwd):/build shareai/meteor-android-build

Tag summary

Content type

Image

Digest

Size

720.4 MB

Last updated

about 6 years ago

docker pull shareai/meteor-android-build