For docker I've some local scripts which I occasionaly use for day-to-day jobs. The reason I don't commit them in the repository is because they're so project specific.
- Install https://github.com/JeroenBoersma/docker-compose-development
bin/dev setup
- Put the scripts in
workspace/bin
with execute permissions.
Next up, some Magento 2 scripts which I use to get back on track.
- todo: import database from aws
Clear all Magento 2 generated context and do a install composer packages
Run setup scripts, deploy static content(this is a speed improvement for local development) Create a local user with a defined password.
Do a clean install of Magento 2, set base url's, locales, generated xsd mapping and set in dev mode.
Link global auth.json and deploy sampledata.
Run the Magento cron every 60 seconds.
Watch files for changes over time, helped me a lot :)
Awesome Mage2tv cachecleaner.
Put this one in your ~/bin/cache-clean.js