dropwhale
dropwhale copied to clipboard
Merge all scripts into single executable
This is an idea I've been toying with for a while. Instead of having a bunch of scripts under .dropwhale, we could instead merge them together in a single executable that can do everything:
dropwhale install dropwhale start dropwhale drush dropwhale run-tests
Another project, http://hedron.sh/, uses something like this to manage their Docker processes. The downside is their project is composerable, and requires a host-installed PHP to run. I'd rather avoid that and keep everything inside the container.
The unified executable could be just shell scripting, or something using Python2 for maximum system compatibility.
Alternatively, we could create a "Dropwhale shell". It would work kinda like this:
dropwhale start # Starts the containers, drops you into the shell inside the container
Run shell commands are Dropwhale specific stuff here
This way, all executables are just inside the container so we have a consistent environment. The only external shell command would be the one that starts the shell session.
The ddev project already does something like this: https://github.com/drud/ddev