{"id":27078967,"url":"https://github.com/netlogix/nlxbacktotopbutton","last_synced_at":"2025-06-28T09:32:37.389Z","repository":{"id":42685983,"uuid":"429823690","full_name":"netlogix/nlxBackToTopButton","owner":"netlogix","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-02T11:01:05.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-17T10:09:01.233Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/netlogix.png","metadata":{"files":{"readme":"README.TESTING.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-19T14:19:54.000Z","updated_at":"2021-11-24T08:27:35.000Z","dependencies_parsed_at":"2023-02-17T18:46:08.356Z","dependency_job_id":null,"html_url":"https://github.com/netlogix/nlxBackToTopButton","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netlogix%2FnlxBackToTopButton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netlogix%2FnlxBackToTopButton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netlogix%2FnlxBackToTopButton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netlogix%2FnlxBackToTopButton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netlogix","download_url":"https://codeload.github.com/netlogix/nlxBackToTopButton/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247421091,"owners_count":20936227,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-06T01:20:11.701Z","updated_at":"2025-04-06T01:20:12.296Z","avatar_url":"https://github.com/netlogix.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Docker based Shopware Testing Environment\n=========================================\n\nFor easier testing with different shopware- and/or php-versions we use a docker based environment.\nThere are some docker containers providing MySQL, PHP and so on.\nThe local filesystem is mapped into the containers that need them.\n\n**NOTE on this README**\nThis file assumes that bin-scripts are installed to ```vendor/bin``` (as composer does by default).\nIf your changed this behaviour in your ```composer.json```\nyou have to adjust the commands written in this file accordingly.\n\nInstallation\n------------\n\nTo use the testing environment in a project,\nadd the following dependency to your project's composer.json's require-dev section:\n\n    \"require-dev\": {\n        \"solutiondrive/sd-test-environment-shopware\": \"*\"\n    }\n\nThen do a `composer update` or use `composer require --dev` instead. \n\nTo initialize the testing environment, e.g. for Shopware 5.6.x simply run the following:\n\n    vendor/bin/sdTest.sh init 56\n\nThis will create some files:\n\n    /README.TESTING.md              # This README.md in your project for other developers\n    /etc/test/docker-compose.yml    # A docker-compose file which can be modified for special needs\n\nUsage / First steps\n-------------------\n\nFirst you should start the testing docker containers (see also next section of this README):\n\n    vendor/bin/sdTest.sh start SHOPWARE_VERSION\n    \n    \nHandle plugin\n-------------\n\nFor all following commands you must pass a php and shopware version, \ne.g. 72 for PHP 7.2 container and 56 for Shopware 5.6 :\n\nFor adding the plugin run:\n\n    vendor/bin/sdPlugin.sh 72 56 add\n    \nFor removing the plugin run:\n\n    vendor/bin/sdPlugin.sh 72 56 remove\n    \nFor activating the plugin run:\n\n    vendor/bin/sdPlugin.sh 72 56 activate    \n    \nFor deactivating the plugin run:\n\n    vendor/bin/sdPlugin.sh 72 56 deactivate\n\n\nControlling the testing environment\n-----------------------------------\n\nList of SHOPWARE_VERSION:\n- 56 -\u003e v5.6.x\n\nTo start the containers e.g. with shopware 5.6 and get back your local shell just run:\n\n    vendor/bin/sdTest.sh start 56\n    \nTo stop the containers run:\n\n    vendor/bin/sdTest.sh stop SHOPWARE_VERSION\n\nIn stopped state the containers data is saved.\n\nTo destroy your containers you can run:\n\n    vendor/bin/sdTest.sh remove SHOPWARE_VERSION\n\nTo restart your containers without loosing data you can run:\n\n    vendor/bin/sdTest.sh restart SHOPWARE_VERSION\n\n\nCan can also run the containers in foreground to monitor the log output of the containers:\n\n    vendor/bin/sdTest.sh run SHOPWARE_VERSION\n\nThen you can stop the execution by pressing CTRL+C. The containers will exit cleanly.\n\n\nIf you started the container in background using ```start```, you can view the logs by running:\n\n    vendor/bin/sdTest.sh logs SHOPWARE_VERSION\n\nYou can follow the logs (as known from ```tail -f``` or ```tailf```):\n\n    vendor/bin/sdTest.sh logs SHOPWARE_VERSION -f\n\nTo connect to the mysql server use ```127.0.0.1``` as host with port (default: 10331) configured in ```etc/test/docker-compose.yml```.\n\n\nLess frequently needed\n----------------------\n\nTo force a rebuild of the containers you can run:\n\n    vendor/bin/sdTest.sh build --no-cache\n\nTo be sure that you have the latest version of the (base) containers you can force pulling newer images:\n    \n    vendor/bin/sdTest.sh build --no-cache --pull\n\nTo be sure to use the newest containers (not only build based containers):\n\n    vendor/bin/sdTest.sh pull SHOPWARE_VERSION\n\nTo destroy and restart your containers in one step without rebuilding images run:\n\n    vendor/bin/sdTest.sh reset SHOPWARE_VERSION\n\nExecuting a command in the testing environment\n----------------------------------------------\n\nCommands (for example to clear the cache or to run the setup) can be executed inside the container.\nYou must give a version of php and shopware to execute command on, e.g. 72 for PHP 7.2 container and 56 for Shopware 5.6.x:\n\n    vendor/bin/sdRunInTest.sh 72 56 ./app/install.sh\n\nIf you want to you can even get a shell inside the PHP container:\n\n    vendor/bin/sdRunInTest.sh 72 56 /bin/bash\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetlogix%2Fnlxbacktotopbutton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetlogix%2Fnlxbacktotopbutton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetlogix%2Fnlxbacktotopbutton/lists"}