Skip to content

Commit 413faa5

Browse files
author
twojtylak
authored
Merge pull request #20 from solutionDrive/add-php56-and-php73-containers-for-every-shopware-version
Add php56 and php73 containers for every shopware version
2 parents e0320f1 + 0d31e90 commit 413faa5

File tree

6 files changed

+194
-10
lines changed

6 files changed

+194
-10
lines changed

README.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ add the following dependency to your project's composer.json's require-dev secti
2222

2323
Then do a `composer update` or use `composer require --dev` instead.
2424

25-
To initialize the testing environment simply run the following:
25+
To initialize the testing environment, e.g. for Shopware 5.4.x simply run the following:
2626

27-
vendor/bin/sdTest.sh init
27+
vendor/bin/sdTest.sh init 54
2828

2929
This will create some files:
3030

@@ -64,23 +64,29 @@ For deactivating the plugin run:
6464
Controlling the testing environment
6565
-----------------------------------
6666

67-
To start the containers and get back your local shell just run:
67+
List of SHOPWARE_VERSION:
68+
- 52 -> v5.2.x
69+
- 53 -> v5.3.x
70+
- 54 -> v5.4.x
71+
- 55 -> v5.5.x
6872

69-
vendor/bin/sdTest.sh start
73+
To start the containers e.g. with shopware 5.4 and get back your local shell just run:
74+
75+
vendor/bin/sdTest.sh start 54
7076

7177
To stop the containers run:
7278

73-
vendor/bin/sdTest.sh stop
79+
vendor/bin/sdTest.sh stop SHOPWARE_VERSION
7480

7581
In stopped state the containers data is saved.
7682

7783
To destroy your containers you can run:
7884

79-
vendor/bin/sdTest.sh remove
85+
vendor/bin/sdTest.sh remove SHOPWARE_VERSION
8086

8187
To restart your containers without loosing data you can run:
8288

83-
vendor/bin/sdTest.sh restart
89+
vendor/bin/sdTest.sh restart SHOPWARE_VERSION
8490

8591

8692
Can can also run the containers in foreground to monitor the log output of the containers:
@@ -124,10 +130,10 @@ Executing a command in the testing environment
124130
----------------------------------------------
125131

126132
Commands (for example to clear the cache or to run the setup) can be executed inside the container.
127-
You must give a version to execute command on, e.g. 71 for PHP 7.1 container:
133+
You must give a version of php and shopware to execute command on, e.g. 71 for PHP 7.1 container and 54 for Shopware 5.4.x:
128134

129-
vendor/bin/sdRunInTest.sh 71 ./app/install.sh
135+
vendor/bin/sdRunInTest.sh 71 54 ./app/install.sh
130136

131137
If you want to you can even get a shell inside the PHP container:
132138

133-
vendor/bin/sdRunInTest.sh 71 /bin/bash
139+
vendor/bin/sdRunInTest.sh 71 54 /bin/bash

docker-compose52.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,50 @@ services:
66
environment:
77
- TZ=Europe/Berlin
88
ports:
9+
- "52856:52856"
910
- "52870:52870"
1011
- "52871:52871"
1112
- "52872:52872"
13+
- "52873:52873"
1214
volumes:
15+
- shopware52_php73:/var/www/shopware52_php73:delegated
1316
- shopware52_php72:/var/www/shopware52_php72:delegated
1417
- shopware52_php71:/var/www/shopware52_php71:delegated
1518
- shopware52_php70:/var/www/shopware52_php70:delegated
19+
- shopware52_php56:/var/www/shopware52_php56:delegated
1620
- ${PROJECT_DIR}:/opt/host:delegated
1721
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
1822
- ./nginx/include.shopware.conf:/etc/nginx/include.shopware.conf
1923
- ./nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf
2024
links:
25+
- shopware52_php73
2126
- shopware52_php72
2227
- shopware52_php71
2328
- shopware52_php70
29+
- shopware52_php56
2430
- mysql
2531
depends_on:
32+
- shopware52_php73
2633
- shopware52_php72
2734
- shopware52_php71
2835
- shopware52_php70
36+
- shopware52_php56
37+
38+
shopware52_php73:
39+
image: solutiondrive/docker-shopware-container:shopware5.2.27-php7.3
40+
environment:
41+
- TZ=Europe/Berlin
42+
- DB_DATABASE=shopware52_php73
43+
- WEB_HOST=localhost:52873
44+
volumes:
45+
- shopware52_php73:/var/www/shopware52_php73:delegated
46+
- ${PROJECT_DIR}:/opt/host:delegated
47+
- ./php/php.ini:/usr/local/etc/php/conf.d/zzz-override-php.ini
48+
- ./php/www.conf:/usr/local/etc/php-fpm.d/www.conf
49+
links:
50+
- mysql
51+
depends_on:
52+
- mysql
2953

3054
shopware52_php72:
3155
image: solutiondrive/docker-shopware-container:shopware5.2.27-php7.2
@@ -75,6 +99,22 @@ services:
7599
depends_on:
76100
- mysql
77101

102+
shopware52_php56:
103+
image: solutiondrive/docker-shopware-container:shopware5.2.27-php5.6
104+
environment:
105+
- TZ=Europe/Berlin
106+
- DB_DATABASE=shopware52_php56
107+
- WEB_HOST=localhost:52856
108+
volumes:
109+
- shopware52_php56:/var/www/shopware52_php56:delegated
110+
- ${PROJECT_DIR}:/opt/host:delegated
111+
- ./php/php.ini:/usr/local/etc/php/conf.d/zzz-override-php.ini
112+
- ./php/www.conf:/usr/local/etc/php-fpm.d/www.conf
113+
links:
114+
- mysql
115+
depends_on:
116+
- mysql
117+
78118
mysql:
79119
image: mysql:5.7.20
80120
environment:
@@ -85,6 +125,8 @@ services:
85125
- "52331:3306"
86126

87127
volumes:
128+
shopware52_php73:
88129
shopware52_php72:
89130
shopware52_php71:
90131
shopware52_php70:
132+
shopware52_php56:

docker-compose53.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,50 @@ services:
66
environment:
77
- TZ=Europe/Berlin
88
ports:
9+
- "53856:53856"
910
- "53870:53870"
1011
- "53871:53871"
1112
- "53872:53872"
13+
- "53873:53873"
1214
volumes:
15+
- shopware53_php73:/var/www/shopware53_php73:delegated
1316
- shopware53_php72:/var/www/shopware53_php72:delegated
1417
- shopware53_php71:/var/www/shopware53_php71:delegated
1518
- shopware53_php70:/var/www/shopware53_php70:delegated
19+
- shopware53_php56:/var/www/shopware53_php56:delegated
1620
- ${PROJECT_DIR}:/opt/host:delegated
1721
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
1822
- ./nginx/include.shopware.conf:/etc/nginx/include.shopware.conf
1923
- ./nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf
2024
links:
25+
- shopware53_php73
2126
- shopware53_php72
2227
- shopware53_php71
2328
- shopware53_php70
29+
- shopware53_php56
2430
- mysql
2531
depends_on:
32+
- shopware53_php73
2633
- shopware53_php72
2734
- shopware53_php71
2835
- shopware53_php70
36+
- shopware53_php56
37+
38+
shopware53_php73:
39+
image: solutiondrive/docker-shopware-container:shopware5.3.7-php7.3
40+
environment:
41+
- TZ=Europe/Berlin
42+
- DB_DATABASE=shopware53_php73
43+
- WEB_HOST=localhost:53873
44+
volumes:
45+
- shopware53_php73:/var/www/shopware53_php73:delegated
46+
- ${PROJECT_DIR}:/opt/host:delegated
47+
- ./php/php.ini:/usr/local/etc/php/conf.d/zzz-override-php.ini
48+
- ./php/www.conf:/usr/local/etc/php-fpm.d/www.conf
49+
links:
50+
- mysql
51+
depends_on:
52+
- mysql
2953

3054
shopware53_php72:
3155
image: solutiondrive/docker-shopware-container:shopware5.3.7-php7.2
@@ -75,6 +99,22 @@ services:
7599
depends_on:
76100
- mysql
77101

102+
shopware53_php56:
103+
image: solutiondrive/docker-shopware-container:shopware5.3.7-php5.6
104+
environment:
105+
- TZ=Europe/Berlin
106+
- DB_DATABASE=shopware53_php56
107+
- WEB_HOST=localhost:53856
108+
volumes:
109+
- shopware53_php56:/var/www/shopware53_php56:delegated
110+
- ${PROJECT_DIR}:/opt/host:delegated
111+
- ./php/php.ini:/usr/local/etc/php/conf.d/zzz-override-php.ini
112+
- ./php/www.conf:/usr/local/etc/php-fpm.d/www.conf
113+
links:
114+
- mysql
115+
depends_on:
116+
- mysql
117+
78118
mysql:
79119
image: mysql:5.7.20
80120
environment:
@@ -85,6 +125,8 @@ services:
85125
- "53331:3306"
86126

87127
volumes:
128+
shopware53_php73:
88129
shopware53_php72:
89130
shopware53_php71:
90131
shopware53_php70:
132+
shopware53_php56:

docker-compose54.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,50 @@ services:
66
environment:
77
- TZ=Europe/Berlin
88
ports:
9+
- "54856:54856"
910
- "54870:54870"
1011
- "54871:54871"
1112
- "54872:54872"
13+
- "54873:54873"
1214
volumes:
15+
- shopware54_php73:/var/www/shopware54_php73:delegated
1316
- shopware54_php72:/var/www/shopware54_php72:delegated
1417
- shopware54_php71:/var/www/shopware54_php71:delegated
1518
- shopware54_php70:/var/www/shopware54_php70:delegated
19+
- shopware54_php56:/var/www/shopware54_php56:delegated
1620
- ${PROJECT_DIR}:/opt/host:delegated
1721
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
1822
- ./nginx/include.shopware.conf:/etc/nginx/include.shopware.conf
1923
- ./nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf
2024
links:
25+
- shopware54_php73
2126
- shopware54_php72
2227
- shopware54_php71
2328
- shopware54_php70
29+
- shopware54_php56
2430
- mysql
2531
depends_on:
32+
- shopware54_php73
2633
- shopware54_php72
2734
- shopware54_php71
2835
- shopware54_php70
36+
- shopware54_php56
37+
38+
shopware54_php73:
39+
image: solutiondrive/docker-shopware-container:shopware5.4.6-php7.3
40+
environment:
41+
- TZ=Europe/Berlin
42+
- DB_DATABASE=shopware54_php73
43+
- WEB_HOST=localhost:54873
44+
volumes:
45+
- shopware54_php73:/var/www/shopware54_php73:delegated
46+
- ${PROJECT_DIR}:/opt/host:delegated
47+
- ./php/php.ini:/usr/local/etc/php/conf.d/zzz-override-php.ini
48+
- ./php/www.conf:/usr/local/etc/php-fpm.d/www.conf
49+
links:
50+
- mysql
51+
depends_on:
52+
- mysql
2953

3054
shopware54_php72:
3155
image: solutiondrive/docker-shopware-container:shopware5.4.6-php7.2
@@ -75,6 +99,22 @@ services:
7599
depends_on:
76100
- mysql
77101

102+
shopware54_php56:
103+
image: solutiondrive/docker-shopware-container:shopware5.4.6-php5.6
104+
environment:
105+
- TZ=Europe/Berlin
106+
- DB_DATABASE=shopware54_php56
107+
- WEB_HOST=localhost:54856
108+
volumes:
109+
- shopware54_php56:/var/www/shopware54_php56:delegated
110+
- ${PROJECT_DIR}:/opt/host:delegated
111+
- ./php/php.ini:/usr/local/etc/php/conf.d/zzz-override-php.ini
112+
- ./php/www.conf:/usr/local/etc/php-fpm.d/www.conf
113+
links:
114+
- mysql
115+
depends_on:
116+
- mysql
117+
78118
mysql:
79119
image: mysql:5.7.20
80120
environment:
@@ -85,6 +125,8 @@ services:
85125
- "54331:3306"
86126

87127
volumes:
128+
shopware54_php73:
88129
shopware54_php72:
89130
shopware54_php71:
90131
shopware54_php70:
132+
shopware54_php56:

docker-compose55.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ services:
1313
- shopware55_php72:/var/www/shopware55_php72:delegated
1414
- shopware55_php71:/var/www/shopware55_php71:delegated
1515
- shopware55_php70:/var/www/shopware55_php70:delegated
16+
- shopware55_php56:/var/www/shopware55_php56:delegated
1617
- ${PROJECT_DIR}:/opt/host:delegated
1718
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
1819
- ./nginx/include.shopware.conf:/etc/nginx/include.shopware.conf
@@ -21,11 +22,13 @@ services:
2122
- shopware55_php72
2223
- shopware55_php71
2324
- shopware55_php70
25+
- shopware55_php56
2426
- mysql
2527
depends_on:
2628
- shopware55_php72
2729
- shopware55_php71
2830
- shopware55_php70
31+
- shopware55_php56
2932

3033
shopware55_php72:
3134
image: solutiondrive/docker-shopware-container:shopware5.5.2-php7.2
@@ -75,6 +78,22 @@ services:
7578
depends_on:
7679
- mysql
7780

81+
shopware55_php56:
82+
image: solutiondrive/docker-shopware-container:shopware5.5.2-php5.6
83+
environment:
84+
- TZ=Europe/Berlin
85+
- DB_DATABASE=shopware55_php56
86+
- WEB_HOST=localhost:55856
87+
volumes:
88+
- shopware55_php56:/var/www/shopware55_php70:delegated
89+
- ${PROJECT_DIR}:/opt/host:delegated
90+
- ./php/php.ini:/usr/local/etc/php/conf.d/zzz-override-php.ini
91+
- ./php/www.conf:/usr/local/etc/php-fpm.d/www.conf
92+
links:
93+
- mysql
94+
depends_on:
95+
- mysql
96+
7897
mysql:
7998
image: mysql:5.7.20
8099
environment:

0 commit comments

Comments
 (0)