Skip to content

MemoICT/shopware-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shopware-docker

Why i build it, there are already docker images for shopware?

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.

How to setup?

  • 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/shopware the offical shopware repository or your shopware composer project
  • Execute swdc build shopware

Which commands exist?

  • swdc up - Starts the containers
  • swdc down - Stops the containers
  • swdc build [Folder name in ~/Code] - Runs build unit, cleares cache, sets developer config (throwExceptions)
  • swdc test [Folder name in ~/Code] - Runs unit tests for it
  • swdc snippets [Folder name in ~/Code] - Imports all new snippets for that shop
  • swdc snap [Folder name in ~/Code] [Name] - Creates a database snapshot
  • swdc rsnap [Folder name in ~/Code] [Name] - Restores a database snapshot
  • swdc apply [Folder name in ~/Code] [Name] - Apply a fixture
  • swdc shell - Opens the a bash shell in cli container
  • swdc version [PHP Version] [MySQL Version] - Generate a docker-compose.override.yaml to choose a another version
  • swdc update-test - Runs migration in update mode

Which configs pre-sets are exists?

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

Which fixtures are available?

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

Which images and tags are available?

Can i use it on Windows / Mac?

I dont't develop on Windows or Mac. Try it out by own

What are the passwords?

MySQL

Host: mysql User: root Password: Root PhpMyAdmin / Adminer: http://localhost:8080

Shopware

User: demo Password: demo

Minio (S3)

Host: minio Key: AKIAIOSFODNN7EXAMPLE Secret-Key: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY Bucket can be created on page http://localhost:9000/minio/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 58.3%
  • HTML 27.0%
  • PHP 13.5%
  • Dockerfile 1.2%