Skip to content

Commit 079c79e

Browse files
markshustmichaellehmkuhlYevhenZvierievTuVanDevsupercid
authored
Release 47.0.0 (#1138)
Co-authored-by: Michael Lehmkuhl <[email protected]> Co-authored-by: Jenyamba <[email protected]> Co-authored-by: Tu Van <[email protected]> Co-authored-by: Cid Lopes <[email protected]>
1 parent 4dd2e62 commit 079c79e

12 files changed

+42
-27
lines changed

CHANGELOG.md

+14
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [47.0.0] - 2024-04-25
8+
9+
### Added
10+
- Check to ensure directory does not already exist in project directory [PR #1127](https://github.com/markshust/docker-magento/pull/1127).
11+
12+
### Updated
13+
- Remove obsolete version directive from docker compose files [PR #1125](https://github.com/markshust/docker-magento/pull/1125).
14+
- Predefined version from 2.4.6-p4 to 2.4.7 [PR #1128](https://github.com/markshust/docker-magento/pull/1128).
15+
- Integration testing configuration to use OpenSearch [PR #1131](https://github.com/markshust/docker-magento/pull/1131).
16+
17+
### Fixed
18+
- SSL cert generation when domain has a port included [PR #1136](https://github.com/markshust/docker-magento/pull/1136).
19+
- OpenSearch container fails to start due to memory heap size configuration [PR #1137](https://github.com/markshust/docker-magento/pull/1137).
20+
721
## [46.1.1] - 2024-04-16
822

923
### Fixed

compose/bin/download

+5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ NC='\033[0m' # No Color
1010

1111
bin/stop
1212

13+
if [ -d "./bin" ]; then
14+
echo "Error: The current directory is not empty. Please remove all contents within this directory and try again."
15+
exit 1
16+
fi
17+
1318
bin/start --no-dev
1419
[ $? != 0 ] && echo "Failed to start Docker services" && exit
1520

compose/bin/setup-ssl

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ if ! bin/docker-compose exec -T -u root app cat /root/.local/share/mkcert/rootCA
77
fi
88

99
# Generate the certificate for the specified domain
10-
bin/docker-compose exec -T -u root app mkcert -key-file nginx.key -cert-file nginx.crt "$@"
10+
DOMAIN_WITHOUT_PORT=$(echo "$@" | cut -d ':' -f1)
11+
bin/docker-compose exec -T -u root app mkcert -key-file nginx.key -cert-file nginx.crt "$DOMAIN_WITHOUT_PORT"
1112
echo "Moving key and cert to /etc/nginx/certs/..."
1213
bin/docker-compose exec -T -u root app chown app:app nginx.key nginx.crt
1314
bin/docker-compose exec -T -u root app mv nginx.key nginx.crt /etc/nginx/certs/

compose/compose.dev-linux.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: "3"
2-
31
services:
42
app:
53
volumes: &appvolumes

compose/compose.dev-ssh.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: "3"
2-
31
services:
42
app:
53
volumes: &appvolumes

compose/compose.dev.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: "3"
2-
31
services:
42
app:
53
volumes: &appvolumes

compose/compose.healthcheck.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: "3"
2-
31
services:
42
app:
53
healthcheck:

compose/compose.yaml

+11-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Mark Shust's Docker Configuration for Magento
22
## (https://github.com/markshust/docker-magento)
33
##
4-
## Version 46.1.1
4+
## Version 47.0.0
55

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

13-
version: "3"
14-
1513
services:
1614
app:
1715
image: markoshust/magento-nginx:1.24-0
@@ -80,8 +78,10 @@ services:
8078
## More info at https://github.com/markshust/docker-magento/issues/488
8179
- "cluster.routing.allocation.disk.threshold_enabled=false"
8280
- "index.blocks.read_only_allow_delete"
83-
## Uncomment the following line to increase the virtual memory map count
84-
# - "max_map_count=262144"
81+
## Uncomment to set custom heap size to avoid memory errors
82+
#- "OPENSEARCH_JAVA_OPTS=-Xms1g -Xmx1g"
83+
## Uncomment to increase the virtual memory map count
84+
#- "max_map_count=262144"
8585

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

106108
rabbitmq:
107109
image: markoshust/magento-rabbitmq:3.12-0
@@ -116,14 +118,14 @@ services:
116118
image: sj26/mailcatcher
117119
ports:
118120
- "1080:1080"
119-
121+
120122
## Cloudflare tunnel support, uncomment to enable
121123
#tunnel:
122124
# container_name: cloudflared-tunnel
123125
# image: cloudflare/cloudflared:latest
124126
# command: tunnel run
125127
# env_file: env/cloudflare.env
126-
128+
127129
## Blackfire support, uncomment to enable
128130
#blackfire:
129131
# image: blackfire/blackfire:2

compose/env/elasticsearch.env

-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
ES_HOST=elasticsearch
22
ES_PORT=9200
3-
4-
## Set custom heap size to avoid memory errors
5-
ES_JAVA_OPTS="-Xms1g -Xmx1g"

compose/env/opensearch.env

-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
OPENSEARCH_HOST=opensearch
22
OPENSEARCH_PORT=9200
3-
OPENSEARCH_HEALTHCHECK_TIMEOUT=100
4-
5-
## Set custom heap size to avoid memory errors
6-
OPENSEARCH_JAVA_OPTS="-Xms1g -Xmx1g"
73

84
# Prevent security patch conflicts with core M2 code
95
DISABLE_SECURITY_PLUGIN=true

compose/template/dev/tests/integration/etc/install-config-mysql.php.2.4.dist

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
67
return [
78
'db-host' => 'db',
89
'db-user' => 'magento',
910
'db-password' => 'magento',
1011
'db-name' => 'magento_integration_tests',
1112
'db-prefix' => '',
1213
'backend-frontname' => 'backend',
13-
'search-engine' => 'elasticsearch7',
14-
'elasticsearch-host' => 'elasticsearch',
14+
'search-engine' => 'opensearch',
15+
'opensearch-host' => 'opensearch',
1516
'admin-user' => \Magento\TestFramework\Bootstrap::ADMIN_NAME,
1617
'admin-password' => \Magento\TestFramework\Bootstrap::ADMIN_PASSWORD,
1718
'admin-email' => \Magento\TestFramework\Bootstrap::ADMIN_EMAIL,
@@ -21,4 +22,5 @@ return [
2122
'amqp-port' => '5672',
2223
'amqp-user' => 'magento',
2324
'amqp-password' => 'magento',
25+
'consumers-wait-for-messages' => '0',
2426
];

lib/template

+6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ git init -qqq
33
git remote add origin https://github.com/markshust/docker-magento
44
git fetch origin -qqq
55
git checkout origin/master -- compose
6+
7+
if [ -d "./bin" ]; then
8+
echo "Error: The current directory is not empty. Please remove all contents within this directory and try again."
9+
exit 1
10+
fi
11+
612
mv compose/* ./
713
mv compose/.gitignore ./
814
mv compose/.vscode ./

0 commit comments

Comments
 (0)