|
@@ -83,14 +83,20 @@ View Dockerfiles:
|
|
|
|
|
|
- [markoshust/magento-nginx (Docker Hub)](https://hub.docker.com/r/markoshust/magento-nginx/)
|
|
- [markoshust/magento-nginx (Docker Hub)](https://hub.docker.com/r/markoshust/magento-nginx/)
|
|
- 1.18
|
|
- 1.18
|
|
- - [`1.18`, `1.18-2`](https://github.com/markshust/docker-magento/tree/master/images/nginx/1.18)
|
|
|
|
|
|
+ - [`1.18`, `1.18-4`](https://github.com/markshust/docker-magento/tree/master/images/nginx/1.18)
|
|
|
|
+ - [`1.18-3`](https://github.com/markshust/docker-magento/tree/34.0.0/images/nginx/1.18)
|
|
|
|
+ - [`1.18-2`](https://github.com/markshust/docker-magento/tree/33.0.0/images/nginx/1.18)
|
|
- [`1.18-1`](https://github.com/markshust/docker-magento/tree/31.0.1/images/nginx/1.18)
|
|
- [`1.18-1`](https://github.com/markshust/docker-magento/tree/31.0.1/images/nginx/1.18)
|
|
- [`1.18-0`](https://github.com/markshust/docker-magento/tree/31.0.0/images/nginx/1.18)
|
|
- [`1.18-0`](https://github.com/markshust/docker-magento/tree/31.0.0/images/nginx/1.18)
|
|
- [markoshust/magento-php (Docker Hub)](https://hub.docker.com/r/markoshust/magento-php/)
|
|
- [markoshust/magento-php (Docker Hub)](https://hub.docker.com/r/markoshust/magento-php/)
|
|
- 7.4
|
|
- 7.4
|
|
- - [`7.4-fpm`, `7.4-fpm-0`](https://github.com/markshust/docker-magento/tree/master/images/php/7.4)
|
|
|
|
|
|
+ - [`7.4-fpm`, `7.4-fpm-2`](https://github.com/markshust/docker-magento/tree/master/images/php/7.4)
|
|
|
|
+ - [`7.4-fpm-1`](https://github.com/markshust/docker-magento/tree/34.1.0/images/php/7.4)
|
|
|
|
+ - [`7.4-fpm-0`](https://github.com/markshust/docker-magento/tree/33.0.0/images/php/7.4)
|
|
- 7.3
|
|
- 7.3
|
|
- - [`7.3-fpm`, `7.3-fpm-7`](https://github.com/markshust/docker-magento/tree/master/images/php/7.3)
|
|
|
|
|
|
+ - [`7.3-fpm`, `7.3-fpm-9`](https://github.com/markshust/docker-magento/tree/master/images/php/7.3)
|
|
|
|
+ - [`7.3-fpm-8`](https://github.com/markshust/docker-magento/tree/34.1.0/images/php/7.3)
|
|
|
|
+ - [`7.3-fpm-7`](https://github.com/markshust/docker-magento/tree/33.0.0/images/php/7.3)
|
|
- [`7.3-fpm-6`](https://github.com/markshust/docker-magento/tree/32.0.1/images/php/7.3)
|
|
- [`7.3-fpm-6`](https://github.com/markshust/docker-magento/tree/32.0.1/images/php/7.3)
|
|
- [`7.3-fpm-5`](https://github.com/markshust/docker-magento/tree/30.0.0/images/php/7.3)
|
|
- [`7.3-fpm-5`](https://github.com/markshust/docker-magento/tree/30.0.0/images/php/7.3)
|
|
- [`7.3-fpm-4`](https://github.com/markshust/docker-magento/tree/29.0.0/images/php/7.3)
|
|
- [`7.3-fpm-4`](https://github.com/markshust/docker-magento/tree/29.0.0/images/php/7.3)
|
|
@@ -130,16 +136,16 @@ Run this automated one-liner from the directory you want to install your project
|
|
#### No sample data
|
|
#### No sample data
|
|
|
|
|
|
```bash
|
|
```bash
|
|
-curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/onelinesetup | bash -s -- magento2.test 2.4.0
|
|
|
|
|
|
+curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/onelinesetup | bash -s -- magento2.test 2.4.1
|
|
```
|
|
```
|
|
|
|
|
|
#### With sample data
|
|
#### With sample data
|
|
|
|
|
|
```bash
|
|
```bash
|
|
-curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/onelinesetup | bash -s -- magento2.test with-samples-2.4.0
|
|
|
|
|
|
+curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/onelinesetup | bash -s -- magento2.test with-samples-2.4.1
|
|
```
|
|
```
|
|
|
|
|
|
-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.
|
|
|
|
|
|
+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.
|
|
|
|
|
|
Prefix the version with `with-samples-` if you would like to automatically install sample data along with Magento.
|
|
Prefix the version with `with-samples-` if you would like to automatically install sample data along with Magento.
|
|
|
|
|
|
@@ -156,19 +162,21 @@ Same result as the one-liner above. Just replace `magento2.test` references with
|
|
curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/template | bash
|
|
curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/template | bash
|
|
|
|
|
|
# Download the version of Magento you want to use with:
|
|
# Download the version of Magento you want to use with:
|
|
-bin/download 2.4.0
|
|
|
|
|
|
+bin/download 2.4.1
|
|
|
|
+
|
|
|
|
+# If the download fails, the script will attempt to download Magento with Composer
|
|
|
|
|
|
# or if you'd rather install with Composer, run:
|
|
# or if you'd rather install with Composer, run:
|
|
#
|
|
#
|
|
# OPEN SOURCE:
|
|
# OPEN SOURCE:
|
|
#
|
|
#
|
|
# rm -rf src
|
|
# rm -rf src
|
|
-# composer create-project --repository=https://repo.magento.com/ --ignore-platform-reqs magento/project-community-edition=2.4.0 src
|
|
|
|
|
|
+# composer create-project --repository=https://repo.magento.com/ --ignore-platform-reqs magento/project-community-edition=2.4.1 src
|
|
#
|
|
#
|
|
# COMMERCE:
|
|
# COMMERCE:
|
|
#
|
|
#
|
|
# rm -rf src
|
|
# rm -rf src
|
|
-# composer create-project --repository=https://repo.magento.com/ --ignore-platform-reqs magento/project-enterprise-edition=2.4.0 src
|
|
|
|
|
|
+# composer create-project --repository=https://repo.magento.com/ --ignore-platform-reqs magento/project-enterprise-edition=2.4.1 src
|
|
|
|
|
|
# Create a DNS host entry for the site:
|
|
# Create a DNS host entry for the site:
|
|
echo "127.0.0.1 ::1 magento2.test" | sudo tee -a /etc/hosts
|
|
echo "127.0.0.1 ::1 magento2.test" | sudo tee -a /etc/hosts
|
|
@@ -185,9 +193,6 @@ open https://magento2.test
|
|
# Download the Docker Compose template:
|
|
# Download the Docker Compose template:
|
|
curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/template | bash
|
|
curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/template | bash
|
|
|
|
|
|
-# Remove existing src directory:
|
|
|
|
-rm -rf src
|
|
|
|
-
|
|
|
|
# Replace with existing source code of your existing Magento instance:
|
|
# Replace with existing source code of your existing Magento instance:
|
|
cp -R ~/Sites/existing src
|
|
cp -R ~/Sites/existing src
|
|
# or: git clone git@github.com:myrepo.git src
|
|
# or: git clone git@github.com:myrepo.git src
|
|
@@ -237,16 +242,6 @@ We recommend keeping your docker config files in version control, so you can mon
|
|
|
|
|
|
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.
|
|
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.
|
|
|
|
|
|
-### Older Versions
|
|
|
|
-
|
|
|
|
-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:
|
|
|
|
-
|
|
|
|
-```
|
|
|
|
-(cd bin && curl -OL https://raw.githubusercontent.com/markshust/docker-magento/master/compose/bin/update && chmod +x update)
|
|
|
|
-```
|
|
|
|
-
|
|
|
|
-You'll now have an updated `bin/update` helper script, and can run it to update your project.
|
|
|
|
-
|
|
|
|
## Custom CLI Commands
|
|
## Custom CLI Commands
|
|
|
|
|
|
- `bin/bash`: Drop into the bash prompt of your Docker container. The `phpfpm` container should be mainly used to access the filesystem within Docker.
|
|
- `bin/bash`: Drop into the bash prompt of your Docker container. The `phpfpm` container should be mainly used to access the filesystem within Docker.
|
|
@@ -257,7 +252,7 @@ You'll now have an updated `bin/update` helper script, and can run it to update
|
|
- `bin/copytocontainer`: Copy folders or files from host to container. Ex. `bin/copytocontainer --all`
|
|
- `bin/copytocontainer`: Copy folders or files from host to container. Ex. `bin/copytocontainer --all`
|
|
- `bin/dev-urn-catalog-generate`: Generate URN's for PHPStorm and remap paths to local host. Restart PHPStorm after running this command.
|
|
- `bin/dev-urn-catalog-generate`: Generate URN's for PHPStorm and remap paths to local host. Restart PHPStorm after running this command.
|
|
- `bin/devconsole`: Alias for `bin/n98-magerun2 dev:console`
|
|
- `bin/devconsole`: Alias for `bin/n98-magerun2 dev:console`
|
|
-- `bin/download`: Download & extract specific Magento version to the `src` directory. Ex. `bin/download 2.4.0`
|
|
|
|
|
|
+- `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`.
|
|
- `bin/fixowns`: This will fix filesystem ownerships within the container.
|
|
- `bin/fixowns`: This will fix filesystem ownerships within the container.
|
|
- `bin/fixperms`: This will fix filesystem permissions within the container.
|
|
- `bin/fixperms`: This will fix filesystem permissions within the container.
|
|
- `bin/grunt`: Run the grunt binary. Ex. `bin/grunt exec`
|
|
- `bin/grunt`: Run the grunt binary. Ex. `bin/grunt exec`
|
|
@@ -328,15 +323,15 @@ Use the following lines to enable Redis on existing installs:
|
|
|
|
|
|
**Enable for Cache:**
|
|
**Enable for Cache:**
|
|
|
|
|
|
-`bin/magento setup:config:set --cache-backend=redis --cache-backend-redis-server=redis --cache-backend-redis-db=0`
|
|
|
|
|
|
+`bin/magento config:set --cache-backend=redis --cache-backend-redis-server=redis --cache-backend-redis-db=0`
|
|
|
|
|
|
**Enable for Full Page Cache:**
|
|
**Enable for Full Page Cache:**
|
|
|
|
|
|
-`bin/magento setup:config:set --page-cache=redis --page-cache-redis-server=redis --page-cache-redis-db=1`
|
|
|
|
|
|
+`bin/magento config:set --page-cache=redis --page-cache-redis-server=redis --page-cache-redis-db=1`
|
|
|
|
|
|
**Enable for Session:**
|
|
**Enable for Session:**
|
|
|
|
|
|
-`bin/magento setup:config:set --session-save=redis --session-save-redis-host=redis --session-save-redis-log-level=4 --session-save-redis-db=2`
|
|
|
|
|
|
+`bin/magento config:set --session-save=redis --session-save-redis-host=redis --session-save-redis-log-level=4 --session-save-redis-db=2`
|
|
|
|
|
|
You may also monitor Redis by running: `bin/redis redis-cli monitor`
|
|
You may also monitor Redis by running: `bin/redis redis-cli monitor`
|
|
|
|
|
|
@@ -413,20 +408,15 @@ Finally, restart the containers with `bin/restart`. After doing so, everything i
|
|
|
|
|
|
### M.academy
|
|
### M.academy
|
|
|
|
|
|
-This course is sponsored by <a href="https://m.academy" target="_blank">M.academy</a>. Level up your Magento 2 skills.
|
|
|
|
|
|
+This course is sponsored by <a href="https://m.academy" target="_blank">M.academy</a>, which offers lessons and courses 100% dedicated to Magento 2.
|
|
|
|
|
|
<a href="https://m.academy" target="_blank"><img src="https://raw.githubusercontent.com/markshust/docker-magento/master/docs/macademy-logo.png" alt="M.academy"></a>
|
|
<a href="https://m.academy" target="_blank"><img src="https://raw.githubusercontent.com/markshust/docker-magento/master/docs/macademy-logo.png" alt="M.academy"></a>
|
|
|
|
|
|
-#### Available Courses:
|
|
|
|
-
|
|
|
|
-- <a href="https://m.academy/courses/setup-magento-2-development-environment-docker" target="_blank">Setup a Magento 2 Development Environment with Docker</a> (FREE!) - The easiest way to install, manage, configure & standardize Magento development environments across your team.
|
|
|
|
-- <a href="https://m.academy/courses/magento-2-coding-kickstart" target="_blank">Magento 2 Coding Kickstart</a> - Start to become productive in Magento 2 programming within one week with no prior experience.
|
|
|
|
-
|
|
|
|
-Also available is the <a href="https://m.academy/library" target="_blank">M.academy Library</a>, a collection of resources including lessons, courses & more.
|
|
|
|
-
|
|
|
|
### Mark Shust
|
|
### Mark Shust
|
|
|
|
|
|
-I'm a <a href="https://u.magento.com/certification/directory/dev/883/" target="_blank">Certified Magento Developer & Architect</a> & <a href="http://www.zend.com/en/yellow-pages/ZEND014633" target="_blank">Zend Certified Engineer</a>, and available for consulting & development of your next project 🤓. You can read my blog at <a href="https://markshust.com" target="_blank">markshust.com</a> or contact me directly at <a href="mailto:mark@shust.com">mark@shust.com</a>.
|
|
|
|
|
|
+My name is Mark Shust and I'm the creator of this repo. I'm a <a href="http://www.zend.com/en/yellow-pages/ZEND014633" target="_blank">Zend Certified Engineer</a> and <a href="https://www.youracclaim.com/users/mark-shust" target="_blank">Adobe Certified Magento Developer</a>, and have been involved since the early days of Magento (0.8!). I'm no longer available for consulting, but am creating course content full-time at <a href="https://m.academy" target="_blank">M.academy</a>.
|
|
|
|
+
|
|
|
|
+You can follow me on Twitter <a href="https://twitter.com/MarkShust" target="_blank">@MarkShust</a>, connect with me on LinkedIn <a href="https://www.linkedin.com/in/MarkShust/" target="_blank">@MarkShust</a>, read my blog at <a href="https://markshust.com" target="_blank">markshust.com</a>, or contact me directly at <a href="mailto:mark@shust.com">mark@shust.com</a>.
|
|
|
|
|
|
### Nexcess
|
|
### Nexcess
|
|
|
|
|