I have a little bit another use case, i need different php versions for testing. Also i hate apache so i use as webserver everywhere nginx with php-fpm.
Also all images does not contain ioncube, because i dont need it while developing in the core.
Every folder in ~/Code is a subdomain which makes testing very helpful. ("~/Code/shopware" => http://shopware.localhost)
And at last every thing is designed to use of shopware git version.
- Clone the repository somewhere
- Optional: Do a symlink from swdc to
/usr/local/bin/swdc - Configure your needs in ".env" file
swdc up: Starts the docker-compose- Checkout in
~/Code/shopwarethe offical shopware repository or your shopware composer project - Execute
swdc build shopware
swdc up- Starts the containersswdc down- Stops the containersswdc build [Folder name in ~/Code]- Runs build unit, cleares cache, sets developer config (throwExceptions)swdc test [Folder name in ~/Code]- Runs unit tests for itswdc snippets [Folder name in ~/Code]- Imports all new snippets for that shopswdc snap [Folder name in ~/Code] [Name]- Creates a database snapshotswdc rsnap [Folder name in ~/Code] [Name]- Restores a database snapshotswdc apply [Folder name in ~/Code] [Name]- Apply a fixtureswdc shell- Opens the a bash shell in cli containerswdc version [PHP Version] [MySQL Version]- Generate a docker-compose.override.yaml to choose a another versionswdc update-test- Runs migration in update mode
All configs can be applied with swdc config [Folder name in ~/Code] [Name]
- bi - Sets bi endpoint to staging
- sbp - Sets store endpoint to staging
- template - Enables forceCompile
- elastic - Enables elasticsearch
All fixtures can be applied with swdc apply [Folder name in ~/Code] [Name]
- api - Sets a apiKey for the demo user with "demo"
- bi-reset - Resets all bi statistics
- en - Sets base-urls and the categories to German category
I dont't develop on Windows or Mac. Try it out by own
Host: mysql User: root Password: Root PhpMyAdmin / Adminer: http://localhost:8080
User: demo Password: demo
Host: minio Key: AKIAIOSFODNN7EXAMPLE Secret-Key: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY Bucket can be created on page http://localhost:9000/minio/