Skip to content

Commit

Permalink
Merge pull request #52 from glo47154/feature/single-dockerfile
Browse files Browse the repository at this point in the history
- Fixed issue about the incorrect extension for docker-compose when the sync method is set to bind;
- Fixed incorrect container name when invoking 'bin/m2d go web';
- Fixed issue about error thrown on Linux when any of multistage image name ends with an underscore symbol;
- Fixed spelling and clarity in prompts, example files, and help;
- Fixed issue with COMPOSER_AUTH variable interfering with auth.json files;
- Fine-tune Mutagen sync options + added new action to fix stuck sync session -> 'bin/m2d sync fix';
- Reorganize Dockerfile for Apache server for better maintainability;
- Fixed issue with fixed configuration for Mailcatcher even if it is not enabled;
- Change hostnames for Mailcatcher and Search Engine from external to internal ones for simplicity;
- Fixed issue about PHP warning about setting memory limit to 0 during the build phase;
- Added crontab, so now Magento cron is one command away: 'bin/magento cron:install';
- Fixed issue with Adobe internal tool setup;
  • Loading branch information
glo47154 authored Apr 14, 2023
2 parents 73975e5 + 6180bfd commit 27cf210
Show file tree
Hide file tree
Showing 9 changed files with 182 additions and 129 deletions.
59 changes: 31 additions & 28 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
## MAIN SETTINGS ##
##########################################

# Set the base path were you want to keep Magento source files
# Set the path on the host that will be mapped to /var/www/html folder in the container
# e.g. /var/www/html or ~/src/html
M2D_SOURCE_DIRECTORY='/var/www/html'
M2D_SOURCE_DIRECTORY='~/src/html'
# Set the project suffix. It will be used to distinguish different instances of Magento2Docker
# If you only work with one instance, you can skip it.
M2D_PROJECT_SUFFIX=''
Expand All @@ -22,8 +22,6 @@ M2D_CPU_TYPE='m1'
# - 'VSCODE' if you are Microsoft Visual Studio Code user
# - '***' you can set any value your IDE requires
M2D_XDEBUG_IDE_KEY='PHPSTORM'
# Provide Composer authorisation:
COMPOSER_AUTH='{"http-basic":{"repo.magento.com":{"username": "","password":""}}}'
# Provide Magento CLI authentication token:
MAGENTO_CLOUD_CLI_TOKEN=''

Expand All @@ -34,23 +32,28 @@ MAGENTO_CLOUD_CLI_TOKEN=''
## MAILCATCHER
# Set to 'yes' to enable Mailcatcher or to 'no' to disable it:
M2D_ENABLE_MAILCATCHER='no'
# Set the port number on which the Mailcatcher web interface will be hosted:
# Set the port number exposed to the host by the Mailcatcher web interface:
M2D_PORT_FOR_MAILCATCHER=1080

## BLACKFIRE
# Set to 'yes' to enable Blackfire or to 'no' to disable it:
M2D_ENABLE_BLACKFIRE='no'

## SELENIUUM
## SELENIUM
# Set to 'yes' to enable Selenium or to 'no' to disable it:
M2D_ENABLE_SELENIUM='no'
# Set Selenium version you want to use:
# Set the Selenium version you want to use:
M2D_SELENIUM_VERSION='3.14.0'
# Set port number used by Seleniub HUB:
# Set port number exposed to the host by Selenium HUB:
M2D_PORT_FOR_SELENIUM_HUB='4444'
# Set the port number used by VNC in Selenium container:
# Set the port number exposed to the host by VNC in the Selenium container:
M2D_PORT_FOR_SELENIUM_VNC='5900'

## M2INSTALL
# Provide link to the Magento 2 CE repository:
M2INSTALL_GIT_CE_REPO='[email protected]:magento/magento2.git'
# Provide link to the Magento 2 EE repository:
M2INSTALL_GIT_EE_REPO=''

##########################################
## SERVICES CONFIGURATION SECTION ##
Expand All @@ -63,29 +66,29 @@ M2D_WEB_SERVER_VENDOR='apache'
# Set which PHP version you want to use:
# - PHP versions: 7.3, 7.4, 8.1, 8.2
M2D_WEB_SERVER_PHP_VERSION='8.1'
# Sets amount of memory available for PHP (php.ini: memory_limit)
# Sets the amount of memory available for PHP (php.ini: memory_limit)
M2D_WEB_SERVER_PHP_MEMORY_LIMIT='2G'
# Set the port number used by SSH:
# Set the SSH port number exposed to the host:
M2D_PORT_FOR_WEB_SERVER_SSH='2222'
# Set the port number used by HTTP:
# Set the HTTP port number exposed to the host:
M2D_PORT_FOR_WEB_SERVER_HTTP='80'
# Set the port number used by HTTPS:
# Set the HTTPS port number exposed to the host:
M2D_PORT_FOR_WEB_SERVER_HTTPS='443'

## DB ENGINE
# Set which DB engine you want to use:
# - 'mariadb' for MariaDB [https://www.elastic.co/]
# - 'mysql' for Opensearch [https://opensearch.org/]
# - 'mysql' for MySQL [https://www.mysql.com/]
M2D_DB_ENGINE_VENDOR='mariadb'
# Set expected version of the search engine:
# Set the expected version of the DB engine:
# - MariaDB versions: 10, 10.2, 10.3, 10.4, 10.6
# - MySQL versions: 5, 5.7, 8, 8.0, 8.0-oracle
M2D_DB_ENGINE_VERSION='10'
# Set the port number used by search engine:
# Set the DB port number exposed to the host:
M2D_PORT_FOR_DB_ENGINE='3306'

## SEARCH ENGINE
# Set to 'yes' to enable search engine or to 'no' to disable it:
# Set to 'yes' to enable the search engine or to 'no' to disable it:
M2D_ENABLE_SEARCH_ENGINE='yes'
# Set which search engine you want to use:
# - 'elasticsearch' for ElasticSearch [https://www.elastic.co/]
Expand All @@ -95,39 +98,39 @@ M2D_SEARCH_ENGINE_VENDOR='elasticsearch'
# - ElasticSearch versions: 6, 7, 7.6, 7.7, 7.9, 7.10, 7.16, 7.17, 8, 8.4
# - OpenSearch versions: 1, 1.2, 2, 2.5
M2D_SEARCH_ENGINE_VERSION='7'
# Set the port number used by search engine:
# Set the search engine port number exposed to the host:
M2D_PORT_FOR_SEARCH_ENGINE='9200'

## MESSAGE-BROKER
# Set to 'yes' to enable Message Broker or to 'no' to disable it:
# Set to 'yes' to enable message broker or to 'no' to disable it:
M2D_ENABLE_MESSAGE_BROKER='no'
# Set which message broker you want to use:
# - 'rabbitmq' for RabbitMQ [https://www.rabbitmq.com/]
M2D_MESSAGE_BROKER_VENDOR='rabbitmq'
# Set expected version of the message broker:
# Set the expected version of the message broker:
# - RabbitMQ versions: 3.8, 3.9
M2D_MESSAGE_BROKER_VERSION='3.8'
# Set the port number used by a broker:
# Set the broker port number exposed to the host:
M2D_PORT_FOR_MESSAGE_BROKER='15672'

## WEB CACHE
# Set to 'yes' to enable Web Cache or to 'no' to disable it
# Set to 'yes' to enable web cache or to 'no' to disable it
M2D_ENABLE_WEB_CACHE='no'
# Set witch web cache solution to use:
# Set which web cache solution to use:
# - 'varnish' for Varnish HTTP Cache [https://varnish-cache.org/]
M2D_WEB_CACHE_VENDOR='varnish'
# Set expected version of the web cache:
# Set the expected version of the web cache:
# - Varnish versions: 6, 6.0, 6.2, 6.4, 6.5, 7, 7.0, 7.1
M2D_WEB_CACHE_VERSION='6'
# Set the port number used by web cache:
# Set the web cache port number exposed to the host:
M2D_PORT_FOR_WEB_CACHE='8080'

## DB CACHE
# Set to 'yes' to enable DB Cache or to 'no' to disable it
# Set to 'yes' to enable DB cache or to 'no' to disable it
M2D_ENABLE_DB_CACHE='no'
# Set witch db cache solution to use:
# Set which db cache solution to use:
# - 'redis' for Redis [https://redis.io/]
M2D_DB_CACHE_VENDOR='redis'
# Set expected version of the db cache:
# Set the expected version of the db cache:
# - Redis versions: 5, 6, 6.2, 7
M2D_DB_CACHE_VERSION='6.2'
Loading

0 comments on commit 27cf210

Please sign in to comment.