Public | Automated Build

Last pushed: 2 months ago
Short Description
Docker Image for MDT (Mobile App Distribution Tool)
Full Description

Note: The master branch may be in an unstable or even broken state during development. Please use [releases][github-release] instead of the master branch in order to get stable binaries.

Artifact: A specific version of an application (etc: My great App V1.2.3) in an installable package (ex: IPA, APK)

OTA: Over the air.


MDT is a mobile application OTA platform which allows to distribute and install multiple application's versions to registred users.

The mains specifications are:

  • RESTful server
  • Responsive Web Client/admin interface
  • Upload of artifacts through Web Interface or with integration server like Jenkins.
  • Artifacts can be grouped for a specific version to have multiples artifacts per version (ex: production, integration, dev,etc..)
  • Artifacts have a branch parameters to reflect your git branch workflow (or other structure if you want) to be capable of produce same version between them if necessary (ex: version X.Y.Z on dev branch for tests before commit to master).
  • All registered applications are public for all registered users. No need to manage application acess by users.
  • Users registration can be filtered by white emails domains with activation email.
  • Application has a specific version latest version witch allows to provided latest builds to continuous tester after each build.
  • Install OTA for artifacts.


Supported Mobile platforms

MDT can manage any kind of artifacts but yet, only IOS And Android OTA install is managed so platform allows only IOS and Android application for now (aka .ipa and .apk artifacts).


MDT server is written in Dart with mongoDB database for Users,Application an artifacts metadata. Artifact files(.ipa, .apk) are stored on an external storage (now: googledrive).

MDT web is written in Dart with Angular dart AngularDart, Angular UI and and bootstrap with material theme. Web GUI is also compiled in javascript for running in all browsers (build/web).

Note:A mobile application written with Flutter will be available in next months.

Getting Started

Getting and running MDT

The easiest way to get ant test MDT is to use docker pre-built images.
Instructions to configure it is on configuration section.

You can install manually MDT from the master branch and run:

pub install
dart bin/server.dart

>> MDT starting ...
>> logging file : mdt_logs_20160220.txt
>> ...
>> bind localhost on port 8080
>> MDT started on port 8080.
>> You can access server Web UI on http://localhost:8080/web/

Note: You need a reachable mongoDB server to start server.


Configuration can be done with a 'config.json' file in 'server/config/' directory.
Each config key can be overridden by environnement value with same key.


cat ./server/config/config.json

    "serverUrl" : "",
  "MDT_TOKEN_SECRET":"secret token",
  • MDT_DATABASE_URI: MongoDB database location.
  • MDT_STORAGE_NAME: External storage used for artifact file.
  • MDT_STORAGE_CONFIG: External storage configuration, see External Storage configuration for info.
  • MDT_SMTP_CONFIG: SMTP server configuration for emails (activation,...).
  • MDT_REGISTRATION_WHITE_DOMAINS: Array of white suffix emails allowed for registration. If empty, no filter will be apply for registration.
  • MDT_REGISTRATION_NEED_ACTIVATION: 'true' if registration use a activation email to activate account.
  • MDT_TOKEN_SECRET: Secret used to secure links web token.
  • MDT_LOG_DIR: Log directory.
  • MDT_SYSADMIN_INITIAL_PASSWORD: Initial sysadmin password, created when no sysadmin present.
  • MDT_SYSADMIN_INITIAL_EMAIL: Initial sysadmin email, created when no sysadmin present.

External Storages

MDT use mongoDB to store Users account, Applications and Artifact info but use a external storage for Artifact files (etc: .ipa, .apk).

There are currently 3 external storage managed by MDT.

Yes Storage

Yes storage is a fake storage wich respond always yes on storage requests en return always same file on get artifact file requests. It can be use for platform tests without install managed.


cat ./server/config/config.json


Google Drive Storage

As his name said, it use Google Drive as storage for Artifacts files.

To use this storage you need to create a projet and download credentials file in Google Developers Console and copy it in the MDT_STORAGE_CONFIG value in config file (or through env set).

For more informations and how to create project and download credentials, see google documentation apis.


cat ./server/config/config.json

      "project_id": "<please fill in>",
      "private_key_id": "<please fill in>",
      "private_key": "<please fill in>",
      "client_email": "<please fill in>",
      "client_id": "<please fill in>",
      "auth_uri": "<please fill in>",
      "token_uri": "<please fill in>",
      "auth_provider_x509_cert_url": "<please fill in>",
      "client_x509_cert_url": "<please fill in>",
      "type": "service_account"}, 

Local Storage

This storage uses a local directory to store Artifacts file. Usefull with a NAS directory or Docker volumes. It create directory structure to store files.


cat ./server/config/config.json


#Artifacts provisionning

Artifacts provisionning can be done either through UI web or ethier directly on a non authenticate REST Api, only application private apiKey is needed. Usefull for integration server.


  • POST/DELETE on /api/in/v1/artifacts/{apiKey}/{branch}/{version}/{artifactName}
  • POST/DELETE on /api/in/v1/artifacts/{apiKey}/{branch}/{version}/{artifactName}
  • POST/DELETE on /api/in/v1/artifacts/{apiKey}/last/{artifactName}
  • POST/DELETE on /api/in/v1/artifacts/{apiKey}/last/{artifactName}

MDT provides a python script to help using artifact provisionning.

Note: You need requests python module installed to use it.

For help:

curl -Ls http://<myserver>/api/in/v1/artifacts/{apiKey}/deploy | python - -h


From deploy input file:
    - version:
curl -Ls http://<myserver>/api/in/v1/artifacts/{apiKey}/deploy | python - ADD|DELETE fromFile sample.json

    - latest:
curl -Ls http://<myserver>/api/in/v1/artifacts/{apiKey}/deploy | python - ADD|DELETE --latest fromFile sample.json

cat sample.json
Note : For latest deploy/delete somes unused values will be ignore.

From parameters:
    - version:
curl -Ls http://<myserver>/api/in/v1/artifacts/{apiKey}/deploy | python - ADD|DELETE fullParameters -version X.Y.Z -branch master -name prod -file app.apk|.ipa

    - latest:
curl -Ls http://<myserver>/api/in/v1/artifacts/{apiKey}/deploy | python - ADD|DELETE --latest fullParameters -name prod -file app.apk|.ipa

#Why use MDT ?

  • Unlike other solutions (Fabrics, TestFlight,...), you have no need to add all your users emails or manage groups to distribute your apps. Users can register themself (with white domains email configuration if needed) and access all your distributes apps. This is very usefull for example on IOS with 'InHouse' certificates in company where anybody can test beta versions of applications.

  • You can delete artifacts, to avoid out of date versions (certificats expiration, bad versions, etc..)

  • MDT have a special "latest" version usefull if you have continous testers: no need to make a new version after each fonctionality implemented.

  • All your artifacts are stored in your storage area


MDT is under the MIT license. See the LICENSE file for details.

Docker Pull Command
Source Repository

Comments (0)