docker-development-box
docker-development-box copied to clipboard
Add Makefile to facilitate common tasks
Inspired by https://github.com/wodby/docker4drupal, a similar project but for Drupal, it would be nice to have a Makefile
that facilitates some common tasks while developing.
Some of the shortcuts that the Makefile
provides (via the referenced file docker.mk
) are:
- start
- stop
- help
- open a ssh session
- run drush commands (we could run
php bin/magento
commands andn98-magerun2
too)
As mentioned in #17, this file could be a good place to have startup/shutdown commands, for example.
I like the idea to help developers make things more easy and we should if we can!
If the current nfs sync works (#18) out we'd have the following 'commands' to run:
- start:
docker-compose up -d
- stop:
docker-compose down
- ssh: See README
- cli: since php is running locally, everything can start locally
Do you think an additional CLI tool would make things more understandable / easier to use? I currently like the idea that is is as bare bones as possible, but I'm open to ideas.
The nice thing of the Makefile
is that it's native also. I'll make a proof of concept, with some ideas.
Something I particularly like in docker environments is using a makefile + .env
to customize the image and runtime variables (such as URL of the project, name, mysql passwords...)
Closing some old issues that don't seem relevant anymore, please re-open if you still encounter this issue.