Skip to content

Commit 8cfbd3f

Browse files
committed
HTTP/2 added to Nginx image 1.18-4
1 parent fdb05ab commit 8cfbd3f

File tree

7 files changed

+34
-31
lines changed

7 files changed

+34
-31
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
88

99
N/A
1010

11+
## [34.1.0] - 2020-10-15
12+
13+
### Added
14+
- HTTP/2 added to Nginx image `1.18-4`
15+
1116
## [34.0.0] - 2020-10-11
1217

1318
### Added

README.md

+14-24
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ View Dockerfiles:
8383

8484
- [markoshust/magento-nginx (Docker Hub)](https://hub.docker.com/r/markoshust/magento-nginx/)
8585
- 1.18
86-
- [`1.18`, `1.18-3`](https://github.com/markshust/docker-magento/tree/master/images/nginx/1.18)
86+
- [`1.18`, `1.18-4`](https://github.com/markshust/docker-magento/tree/master/images/nginx/1.18)
87+
- [`1.18-3`](https://github.com/markshust/docker-magento/tree/34.0.0/images/nginx/1.18)
8788
- [`1.18-2`](https://github.com/markshust/docker-magento/tree/33.0.0/images/nginx/1.18)
8889
- [`1.18-1`](https://github.com/markshust/docker-magento/tree/31.0.1/images/nginx/1.18)
8990
- [`1.18-0`](https://github.com/markshust/docker-magento/tree/31.0.0/images/nginx/1.18)
@@ -133,16 +134,16 @@ Run this automated one-liner from the directory you want to install your project
133134
#### No sample data
134135

135136
```bash
136-
curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/onelinesetup | bash -s -- magento2.test 2.4.0
137+
curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/onelinesetup | bash -s -- magento2.test 2.4.1
137138
```
138139

139140
#### With sample data
140141

141142
```bash
142-
curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/onelinesetup | bash -s -- magento2.test with-samples-2.4.0
143+
curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/onelinesetup | bash -s -- magento2.test with-samples-2.4.1
143144
```
144145

145-
The `magento2.test` above defines the hostname to use, and the `2.4.0` defines the Magento version to install. Note that since we need a write to `/etc/hosts` for DNS resolution, you will be prompted for your system password during setup.
146+
The `magento2.test` above defines the hostname to use, and the `2.4.1` defines the Magento version to install. Note that since we need a write to `/etc/hosts` for DNS resolution, you will be prompted for your system password during setup.
146147

147148
Prefix the version with `with-samples-` if you would like to automatically install sample data along with Magento.
148149

@@ -159,19 +160,21 @@ Same result as the one-liner above. Just replace `magento2.test` references with
159160
curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/template | bash
160161

161162
# Download the version of Magento you want to use with:
162-
bin/download 2.4.0
163+
bin/download 2.4.1
164+
165+
# If the download fails, the script will attempt to download Magento with Composer
163166

164167
# or if you'd rather install with Composer, run:
165168
#
166169
# OPEN SOURCE:
167170
#
168171
# rm -rf src
169-
# composer create-project --repository=https://repo.magento.com/ --ignore-platform-reqs magento/project-community-edition=2.4.0 src
172+
# composer create-project --repository=https://repo.magento.com/ --ignore-platform-reqs magento/project-community-edition=2.4.1 src
170173
#
171174
# COMMERCE:
172175
#
173176
# rm -rf src
174-
# composer create-project --repository=https://repo.magento.com/ --ignore-platform-reqs magento/project-enterprise-edition=2.4.0 src
177+
# composer create-project --repository=https://repo.magento.com/ --ignore-platform-reqs magento/project-enterprise-edition=2.4.1 src
175178

176179
# Create a DNS host entry for the site:
177180
echo "127.0.0.1 ::1 magento2.test" | sudo tee -a /etc/hosts
@@ -188,9 +191,6 @@ open https://magento2.test
188191
# Download the Docker Compose template:
189192
curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/template | bash
190193

191-
# Remove existing src directory:
192-
rm -rf src
193-
194194
# Replace with existing source code of your existing Magento instance:
195195
cp -R ~/Sites/existing src
196196
# or: git clone [email protected]:myrepo.git src
@@ -240,16 +240,6 @@ We recommend keeping your docker config files in version control, so you can mon
240240

241241
It is recommended to keep your root docker config files in one repository, and your Magento code setup in another. This ensures the Magento base path lives at the top of one specific repository, which makes automated build pipelines and deployments easy to manage, and maintains compatibility with projects such as Magento Cloud.
242242

243-
### Older Versions
244-
245-
Versions older than `24.0.0` did not include a `bin/update` helper script, and versions older than `26.0.0` had a different directory structure. For both of these situations, you can download the most recent file to your project by running:
246-
247-
```
248-
(cd bin && curl -OL https://raw.githubusercontent.com/markshust/docker-magento/master/compose/bin/update && chmod +x update)
249-
```
250-
251-
You'll now have an updated `bin/update` helper script, and can run it to update your project.
252-
253243
## Custom CLI Commands
254244

255245
- `bin/bash`: Drop into the bash prompt of your Docker container. The `phpfpm` container should be mainly used to access the filesystem within Docker.
@@ -260,7 +250,7 @@ You'll now have an updated `bin/update` helper script, and can run it to update
260250
- `bin/copytocontainer`: Copy folders or files from host to container. Ex. `bin/copytocontainer --all`
261251
- `bin/dev-urn-catalog-generate`: Generate URN's for PHPStorm and remap paths to local host. Restart PHPStorm after running this command.
262252
- `bin/devconsole`: Alias for `bin/n98-magerun2 dev:console`
263-
- `bin/download`: Download & extract specific Magento version to the `src` directory. Ex. `bin/download 2.4.0`
253+
- `bin/download`: Download & extract specific Magento version to the `src` directory. If the archive download fails, it will attempt to download with Composer. Ex. `bin/download 2.4.1`.
264254
- `bin/fixowns`: This will fix filesystem ownerships within the container.
265255
- `bin/fixperms`: This will fix filesystem permissions within the container.
266256
- `bin/grunt`: Run the grunt binary. Ex. `bin/grunt exec`
@@ -331,15 +321,15 @@ Use the following lines to enable Redis on existing installs:
331321

332322
**Enable for Cache:**
333323

334-
`bin/magento setup:config:set --cache-backend=redis --cache-backend-redis-server=redis --cache-backend-redis-db=0`
324+
`bin/magento config:set --cache-backend=redis --cache-backend-redis-server=redis --cache-backend-redis-db=0`
335325

336326
**Enable for Full Page Cache:**
337327

338-
`bin/magento setup:config:set --page-cache=redis --page-cache-redis-server=redis --page-cache-redis-db=1`
328+
`bin/magento config:set --page-cache=redis --page-cache-redis-server=redis --page-cache-redis-db=1`
339329

340330
**Enable for Session:**
341331

342-
`bin/magento setup:config:set --session-save=redis --session-save-redis-host=redis --session-save-redis-log-level=4 --session-save-redis-db=2`
332+
`bin/magento config:set --session-save=redis --session-save-redis-host=redis --session-save-redis-log-level=4 --session-save-redis-db=2`
343333

344334
You may also monitor Redis by running: `bin/redis redis-cli monitor`
345335

compose/bin/download

+10-2
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,13 @@ if [ $(find ~/.docker-magento/magento2-$1.tar.gz -size -1M) ]; then
1111
(cd ~/.docker-magento && curl -o magento2-$1.tar.gz -OL https://www.magento.mirror.hypernode.com/releases/magento-$1.tar.gz)
1212
fi
1313

14-
echo "Extracting magento2-$1.tar.gz to ./src"
15-
mkdir -p src && tar xzf ~/.docker-magento/magento2-$1.tar.gz -o -C src
14+
# Final fallback. If no archive exists, let's use Composer!
15+
if [ $(find ~/.docker-magento/magento2-$1.tar.gz -size -1M) ]; then
16+
echo "Archive not found, or not yet available due to new version release."
17+
echo "Attempting install with Composer..."
18+
rm -rf src
19+
composer create-project --repository=https://repo.magento.com/ --ignore-platform-reqs magento/project-community-edition=$1 src
20+
else
21+
echo "Extracting magento2-$1.tar.gz to ./src"
22+
mkdir -p src && tar xzf ~/.docker-magento/magento2-$1.tar.gz -o -C src
23+
fi

compose/bin/setup

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ sleep 5 #Ensure containers are started...
1010

1111
echo "Copying all files from host to container..."
1212
rm -rf src/vendor #Clear for step below
13-
mv .vscode src/
1413
bin/copytocontainer --all
1514

1615
bin/clinotty chmod u+x bin/magento

compose/docker-compose.dev.yml

+1-1
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 34.0.0
4+
# Version 34.1.0
55

66
version: "3"
77

compose/docker-compose.yml

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

66
version: "3"
77

88
services:
99
app:
10-
image: markoshust/magento-nginx:1.18-3
10+
image: markoshust/magento-nginx:1.18-4
1111
ports:
1212
- "80:8000"
1313
- "443:8443"

images/nginx/1.18/conf/default.conf

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ server {
88
}
99

1010
server {
11-
listen 8443 ssl;
11+
listen [::]:8443 ssl http2 ipv6only=on;
12+
listen 8443 ssl http2;
1213

1314
ssl_certificate /etc/nginx/certs/nginx.crt;
1415
ssl_certificate_key /etc/nginx/certs/nginx.key;

0 commit comments

Comments
 (0)