Search code examples
bashdockershellshopwareshopware6

Shopware 6: How to test against newly released Shopware versions without using dockware?


I am currently using dockware in my shell scripts to get Shopware docker images for testing. However, dockware takes some time to upload the latest Shopware versions after they are released, like 6.5.7.0.

I would like to be able to test against newly released Shopware versions as soon as possible. How can I pull the latest Shopware docker images without relying on dockware?

docker run -d -p 80:80 dockware/dev:6.5.7.0

Any help will be appreciated.


Solution

  • Edit: I created a PR at the Dockware repository, which has been merged. The tags for the new version should appear soon.

    For future updates:

    Dockware provides a tutorial to create it with a new Shopware Version:

    https://github.com/dockware/dockware#creating-a-new-shopware-version

    Creating a new Shopware Version.
    At the moment, the step to add a new Shopware version is to manually create a few files, but it's still very easy.
    Add 2 new folders to variants/play and variants/dev (just copy the previous release). Then open the variables.json in each folder and adjust the Shopware Version, as well as the Download URL.
    Afterwards, add the new entries in the manifest.json. Please don't forget to move the alias "latest" to the correct version.
    Now open the file build/WorkflowBuilder/Constant.php and adjust the correct latest Shopware version. This is for Cypress double verifications.
    Then open the build folder in your CLI and run "make generate-tests" to also create new SVRUnit tests.
    Also adjust the Github workflows to build all required images.
    That's it! You can now commit your changes.