Public | Automated Build

Last pushed: 7 months ago
Short Description
Digital platform
Full Description

Overview

Project local deployment guide

  1. First at all you need to clone this repo on your local machine:

    $ mkdir digital-platform
    $ cd digital-platform 
    $ git clone git@bitbucket.org:treesoftrussia/digital-platform.git .
    
  2. Using special utils which you can found in ./support directory build and run project (Utils guide):

    $ support/docker/up.sh local -b
    

Utils

Wrappers

  1. ./support/docker/bin/bash.sh - wrapper under docker exec -it web bash command.
  2. ./support/docker/bin/log.sh - util for real time log outputting. Supports nginx_error, nginx_access, mysql, app, rs arguments. Simple wrapper under tail command with different log sources.
  3. ./support/docker/bin/phpunit.sh - wrapper under phpunit command inside of web container. Uses XDEBUG_CONFIG environment variable for setting XDEBUG config.
  4. ./support/docker/bin/webpack.sh - executes webpack command inside of web container with /var/www/resources current directory.

    Build and Run

  5. ./support/docker/up.sh - builds and executes the project container using docker-compose files located at ./support/docker. Usage: ./support/docker/up.sh env_name [-b]. If -b flag is specified then builds images before running.

Notes and Tips

  1. For the local development builds special docker image with the next building args:
  • INSTALL_XDEBUG=true
  • XDEBUG_REMOTE_HOST="set here your host"
  • INSTALL_WEBPACK=true
  • BUILD_FRONTEND=false #because it runs after containers running (in init script)
  • COMPOSER_INSTALL_RUN=false #because it runs after containers running (in init script)
  1. For all another environments image builds with:
  • INSTALL_XDEBUG=false
  • XDEBUG_REMOTE_HOST=
  • INSTALL_WEBPACK=false
  • BUILD_FRONTEND=true
  • COMPOSER_INSTALL_RUN=true
  1. Don't mix these environments. Local uses only for development on the local machine and never pushes to the Dockerhub.
  2. Consequently for the local building/running always use ./support/docker/up.sh local [-b] command.
Docker Pull Command
Owner
mildberrydigital
Source Repository

Comments (0)