Skip to content

Commit 7335e51

Browse files
committed
Updated algorithm of build and install of an application.
1 parent e33fa42 commit 7335e51

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
11
# Magento 2 Docker
22

33
## Quick Start
4-
### Configure Docker.
4+
5+
### 1. Infrastructure part
56

67
When you are done with the shell script, follow the next points:
7-
* Run shell script in the root directory (this may update files in your docker directory). Keep in mind, execution of this script is idempotent (_can be applied multiple times without changing the result_).
8+
1. Run shell script in the root directory (this may update files in your docker directory). Keep in mind, execution of this script is idempotent (_can be applied multiple times without changing the result_).
89
```shell
910
sh check.sh
1011
```
11-
* Update env files according to your needs. Update your magento keys in composer.env
12-
* Enter your IP in `.env` (usually 192.168.x.x, can be seen with the command ifconfig) LOCAL_HOST_IP
13-
* For elasticsearch work execute from your OS command line:
12+
2. Update your magento keys in composer.env [Get your authentication keys](https://experienceleague.adobe.com/docs/commerce-operations/installation-guide/prerequisites/authentication-keys.html?lang=en)
13+
3. For elasticsearch work execute from your OS command line:
1414
```shell script
1515
sudo sysctl -w vm.max_map_count=262144
1616
```
1717

18-
### Install Magento
18+
### 2. Application part (install Magento)
1919

20-
* Create new folder `magento` and put your magento into it.
21-
* Magento can be downloaded from https://magento.com/tech-resources/download
22-
* `composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition <install-directory-name>`
23-
* Execute `make docker:build && make docker:magento` command to create and run all necessary containers (without cron).
24-
* To install magento enter the container with the command `make mg` and execute magento installation:
20+
1. **IMPORTANT!! Create new folder** `magento`.
21+
2. Execute from the project root `make docker:magic` command to create and run all necessary containers (without cron).
22+
3. Enter the container with the command `make mg` and run from the container
23+
```shell script
24+
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition .
25+
```
26+
4. To install magento run inside container magento installation:
2527
```shell script
2628
magento-build && magento-install
2729
```

0 commit comments

Comments
 (0)