Public | Automated Build

Last pushed: 8 days ago
Short Description
A docker image containing all tools required for building dm-mautic releases
Full Description

Mautic Build Tools





What is this?

A docker image that contains all build tools required for building dm-mautic images.

Features:

  • composer
  • Search-Replace-DB
  • Use /data as the working directory
  • Executing as non-privileged user mautic-build
  • Preserving file permissions by adopting the /data dir owner's UID

How to use this image

Installation

docker pull digitalmobil/mautic-build-tools

Usage

  1. Run composer

    Simple composer call in the current directory:

     docker run --rm -v $(pwd):/data digitalmobil/mautic-build-tools composer --help
    

    If working with packages installed via git ssh the local .ssh directory shall be mapped into the container:

     docker run --rm -v $(pwd):/data               \
                     -v ~/.ssh:/home/mautic-build/.ssh \
                     digitalmobil/mautic-build-tools composer install
    

    To speed up things the local cache can be utilized as well:

     docker run --rm -v $(pwd):/data                         \
                     -v ~/.ssh:/home/mautic-build/.ssh           \
                     -v ~/.composer:/home/mautic-build/.composer \
                     digitalmobil/mautic-build-tools composer install
    
  2. Run SRDB

     docker run --rm --link mautic_azo_staging_db:db mautic-build-tools \
            srdb -h db -u root -p "MYSQL_ROOT_PW" -n DB_NAME -s SEARCH -r REPLACE
    
Docker Pull Command
Owner
digitalmobil
Source Repository