Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 47.0.0 #1138

Merged
merged 8 commits into from
Apr 25, 2024
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [47.0.0] - 2024-04-25

### Added
- Check to ensure directory does not already exist in project directory [PR #1127](https://github.com/markshust/docker-magento/pull/1127).

### Updated
- Remove obsolete version directive from docker compose files [PR #1125](https://github.com/markshust/docker-magento/pull/1125).
- Predefined version from 2.4.6-p4 to 2.4.7 [PR #1128](https://github.com/markshust/docker-magento/pull/1128).
- Integration testing configuration to use OpenSearch [PR #1131](https://github.com/markshust/docker-magento/pull/1131).

### Fixed
- SSL cert generation when domain has a port included [PR #1136](https://github.com/markshust/docker-magento/pull/1136).
- OpenSearch container fails to start due to memory heap size configuration [PR #1137](https://github.com/markshust/docker-magento/pull/1137).

## [46.1.1] - 2024-04-16

### Fixed
Expand Down
5 changes: 5 additions & 0 deletions compose/bin/download
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ NC='\033[0m' # No Color

bin/stop

if [ -d "./bin" ]; then
echo "Error: The current directory is not empty. Please remove all contents within this directory and try again."
exit 1
fi

bin/start --no-dev
[ $? != 0 ] && echo "Failed to start Docker services" && exit

Expand Down
3 changes: 2 additions & 1 deletion compose/bin/setup-ssl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ if ! bin/docker-compose exec -T -u root app cat /root/.local/share/mkcert/rootCA
fi

# Generate the certificate for the specified domain
bin/docker-compose exec -T -u root app mkcert -key-file nginx.key -cert-file nginx.crt "$@"
DOMAIN_WITHOUT_PORT=$(echo "$@" | cut -d ':' -f1)
bin/docker-compose exec -T -u root app mkcert -key-file nginx.key -cert-file nginx.crt "$DOMAIN_WITHOUT_PORT"
echo "Moving key and cert to /etc/nginx/certs/..."
bin/docker-compose exec -T -u root app chown app:app nginx.key nginx.crt
bin/docker-compose exec -T -u root app mv nginx.key nginx.crt /etc/nginx/certs/
Expand Down
2 changes: 0 additions & 2 deletions compose/compose.dev-linux.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3"

services:
app:
volumes: &appvolumes
Expand Down
2 changes: 0 additions & 2 deletions compose/compose.dev-ssh.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3"

services:
app:
volumes: &appvolumes
Expand Down
2 changes: 0 additions & 2 deletions compose/compose.dev.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3"

services:
app:
volumes: &appvolumes
Expand Down
2 changes: 0 additions & 2 deletions compose/compose.healthcheck.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3"

services:
app:
healthcheck:
Expand Down
20 changes: 11 additions & 9 deletions compose/compose.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Mark Shust's Docker Configuration for Magento
## (https://github.com/markshust/docker-magento)
##
## Version 46.1.1
## Version 47.0.0

## To use SSH, see https://github.com/markshust/docker-magento#ssh
## Linux users, see https://github.com/markshust/docker-magento#linux
Expand All @@ -10,8 +10,6 @@
## 172.17.0.1 in this file with the result of:
## docker network inspect bridge --format='{{(index .IPAM.Config 0).Gateway}}'

version: "3"

services:
app:
image: markoshust/magento-nginx:1.24-0
Expand Down Expand Up @@ -80,8 +78,10 @@ services:
## More info at https://github.com/markshust/docker-magento/issues/488
- "cluster.routing.allocation.disk.threshold_enabled=false"
- "index.blocks.read_only_allow_delete"
## Uncomment the following line to increase the virtual memory map count
# - "max_map_count=262144"
## Uncomment to set custom heap size to avoid memory errors
#- "OPENSEARCH_JAVA_OPTS=-Xms1g -Xmx1g"
## Uncomment to increase the virtual memory map count
#- "max_map_count=262144"

## If you wish to use Elasticsearch, comment out opensearch image above and
## uncomment this block. Do the same in the composer.healthcheck.yaml file.
Expand All @@ -100,8 +100,10 @@ services:
# ## More info at https://github.com/markshust/docker-magento/issues/488
# - "cluster.routing.allocation.disk.threshold_enabled=false"
# - "index.blocks.read_only_allow_delete"
# ## Uncomment the following line to increase the virtual memory map count
# - "max_map_count=262144"
# ## Uncomment to set custom heap size to avoid memory errors
# #- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
# ## Uncomment to increase the virtual memory map count
# #- "max_map_count=262144"

rabbitmq:
image: markoshust/magento-rabbitmq:3.12-0
Expand All @@ -116,14 +118,14 @@ services:
image: sj26/mailcatcher
ports:
- "1080:1080"

## Cloudflare tunnel support, uncomment to enable
#tunnel:
# container_name: cloudflared-tunnel
# image: cloudflare/cloudflared:latest
# command: tunnel run
# env_file: env/cloudflare.env

## Blackfire support, uncomment to enable
#blackfire:
# image: blackfire/blackfire:2
Expand Down
3 changes: 0 additions & 3 deletions compose/env/elasticsearch.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
ES_HOST=elasticsearch
ES_PORT=9200

## Set custom heap size to avoid memory errors
ES_JAVA_OPTS="-Xms1g -Xmx1g"
4 changes: 0 additions & 4 deletions compose/env/opensearch.env
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
OPENSEARCH_HOST=opensearch
OPENSEARCH_PORT=9200
OPENSEARCH_HEALTHCHECK_TIMEOUT=100

## Set custom heap size to avoid memory errors
OPENSEARCH_JAVA_OPTS="-Xms1g -Xmx1g"

# Prevent security patch conflicts with core M2 code
DISABLE_SECURITY_PLUGIN=true
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

return [
'db-host' => 'db',
'db-user' => 'magento',
'db-password' => 'magento',
'db-name' => 'magento_integration_tests',
'db-prefix' => '',
'backend-frontname' => 'backend',
'search-engine' => 'elasticsearch7',
'elasticsearch-host' => 'elasticsearch',
'search-engine' => 'opensearch',
'opensearch-host' => 'opensearch',
'admin-user' => \Magento\TestFramework\Bootstrap::ADMIN_NAME,
'admin-password' => \Magento\TestFramework\Bootstrap::ADMIN_PASSWORD,
'admin-email' => \Magento\TestFramework\Bootstrap::ADMIN_EMAIL,
Expand All @@ -21,4 +22,5 @@ return [
'amqp-port' => '5672',
'amqp-user' => 'magento',
'amqp-password' => 'magento',
'consumers-wait-for-messages' => '0',
];
6 changes: 6 additions & 0 deletions lib/template
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ git init -qqq
git remote add origin https://github.com/markshust/docker-magento
git fetch origin -qqq
git checkout origin/master -- compose

if [ -d "./bin" ]; then
echo "Error: The current directory is not empty. Please remove all contents within this directory and try again."
exit 1
fi

mv compose/* ./
mv compose/.gitignore ./
mv compose/.vscode ./
Expand Down