Skip to content

Commit cfd2b16

Browse files
authored
Merge pull request #18 from ModestCoders/updates-for-setup-command
Updates for setup command
2 parents 22b74f3 + 69b5d4b commit cfd2b16

File tree

9 files changed

+25
-68
lines changed

9 files changed

+25
-68
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ and this project adheres to [Semantic Version](http://semver.org/spec/v2.0.0.htm
1111

1212
### Removed
1313

14+
## [next release 2.1.0] - 21-09-2018
15+
### Changed
16+
17+
* Easier install documentation using `dockergento setup` command
18+
* Set all configuration settings inside `config/dockergento` folder
19+
* Change `docker-compose.yml` filename to `docker-compose-sample.yml` as this file needs to be copied and edited per project.
20+
1421
## [next release 2.0.0] - 13-09-2018
1522
### Added
1623

README.md

Lines changed: 10 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -71,68 +71,20 @@ See [dockergento workflow](#workflow) for a better understanding about whole dev
7171

7272
## Installation
7373

74-
1. Copy this docker configuration repository in your project
74+
1. Install [magento2-dockergento-console](https://github.com/ModestCoders/magento2-dockergento-console)
7575

76-
```
77-
cd <path_to_your_project>
78-
curl -L https://api.github.com/repos/ModestCoders/magento2-dockergento/tarball | tar xz --strip=1
79-
```
76+
2. Setup docker in your project:
77+
78+
```
79+
cd <path_to_your_project>
80+
dockergento setup
81+
```
8082
81-
2. Edit binded paths or nginx configuration if needed
83+
3. [Optional] If you have a multi-store magento, you need to add your website codes to the ngnix configuration as follows:
8284
8385
<details>
84-
<summary>More info about custom configurations</summary>
85-
86-
**Binded Paths:**
87-
88-
If you install magento code in a different folder than your project root, you might need to replace `<magento_dir>` on the following files:
89-
90-
* `docker-compose.yml`
91-
92-
```
93-
app-volumes:
94-
build: ./config/docker/image/app-volumes
95-
volumes: &appvolumes
96-
- ~/.composer:/var/www/.composer:delegated
97-
- sockdata:/sock
98-
- magento:/var/www/html/<magento_dir>
99-
- ./app:/var/www/html/<magento_dir>/app:delegated
100-
- ./.git:/var/www/html/.git:delegated
101-
- ./config:/var/www/html/config:delegated
102-
- ./composer.json:/var/www/html/composer.json:delegated
103-
- ./composer.lock:/var/www/html/composer.lock:delegated
104-
# Add here the rest of files and folders in your git repository that you want to bind between host and container
105-
106-
unison:
107-
image: modestcoders/unison:2.51.2
108-
volumes:
109-
- magento:/var/www/html/<magento_dir>
110-
- ./<magento_dir>/vendor:/sync/<magento_dir>/vendor
111-
environment:
112-
- SYNC_SOURCE_BASE_PATH=/sync/<magento_dir>
113-
- SYNC_DESTINATION_BASE_PATH=/var/www/html/<magento_dir>
114-
- SYNC_MAX_INOTIFY_WATCHES=60000
115-
```
116-
117-
* `config/docker/image/app-volumes/Dockerfile`
118-
119-
```
120-
RUN mkdir -p /var/www/html/<magento_dir> && chown -R 1000:1000 /var/www/html
121-
```
122-
123-
* `config/docker/image/nginx/conf/default.conf`
124-
125-
```
126-
server {
127-
# ...
128-
set $MAGE_ROOT /var/www/html/<magento_dir>;
129-
# ...
130-
```
131-
132-
**Nginx Multi-store:**
133-
134-
If you have a multi-store magento, you need to add your website codes to the ngnix configuration as follows:
135-
86+
<summary>Open info about ngnix configuration</summary>
87+
13688
* `config/docker/image/nginx/conf/default.conf`
13789
13890
```
@@ -148,8 +100,6 @@ See [dockergento workflow](#workflow) for a better understanding about whole dev
148100
```
149101
</details>
150102
151-
3. Install [magento2-dockergento-console](https://github.com/ModestCoders/magento2-dockergento-console)
152-
153103
## Usage
154104
155105
### Start Application
File renamed without changes.

docker-compose.yml renamed to docker-compose.sample.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ version: "3"
22

33
services:
44
app-volumes:
5-
build: ./config/docker/image/app-volumes
5+
build: ./config/dockergento/image/app-volumes
66
volumes: &appvolumes
77
- ~/.composer:/var/www/.composer:delegated
88
- sockdata:/sock
9-
- magento:/var/www/html
9+
- workspace:/var/www/html
1010
- ./app:/var/www/html/app:delegated
1111
- ./.git:/var/www/html/.git:delegated
1212
- ./config:/var/www/html/config:delegated
1313
- ./composer.json:/var/www/html/composer.json:delegated
1414
- ./composer.lock:/var/www/html/composer.lock:delegated
15-
# Add here the rest of files and folders in your git repository that you want to bind between host and container
15+
# {FILES_IN_GIT}
1616

1717
app:
18-
build: ./config/docker/image/nginx
18+
build: ./config/dockergento/image/nginx
1919
ports:
2020
- 80:8000
2121
volumes: *appvolumes
@@ -52,7 +52,7 @@ services:
5252
unison:
5353
image: modestcoders/unison:2.51.2
5454
volumes:
55-
- magento:/var/www/html
55+
- workspace:/var/www/html
5656
- ./vendor:/sync/vendor
5757
environment:
5858
- SYNC_SOURCE_BASE_PATH=/sync
@@ -65,4 +65,4 @@ services:
6565
volumes:
6666
dbdata:
6767
sockdata:
68-
magento:
68+
workspace:

docs/grumphp_setup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ If you want to use `grumphp` in your `git hooks`, the `grumphp` commands need to
44

55
This project provides 2 custom `git hook` templates for that:
66

7-
* [See config/grumphp/hooks/docker](../config/grumphp/hooks/docker)
7+
* [See config/dockergento/grumphp/hooks](../config/dockergento/grumphp/hooks)
88

99
Use these custom template by adding this in your `composer.json`:
1010

1111
```
1212
"scripts": {
13-
"grumphpTemplates": "cp -Rf config/grumphp/hooks/docker/* vendor/phpro/grumphp/resources/hooks/local/",
13+
"grumphpTemplates": "cp -Rf config/dockergento/grumphp/hooks/* vendor/phpro/grumphp/resources/hooks/local/",
1414
"pre-autoload-dump": [
1515
"cp vendor/magento/magento2-base/app/etc/NonComposerComponentRegistration.php app/etc/NonComposerComponentRegistration.php"
1616
],

0 commit comments

Comments
 (0)