dropwhale icon indicating copy to clipboard operation
dropwhale copied to clipboard

Merge all scripts into single executable

Open socketwench opened this issue 7 years ago • 2 comments

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.

socketwench avatar May 13 '17 16:05 socketwench

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.

socketwench avatar May 13 '17 16:05 socketwench

The ddev project already does something like this: https://github.com/drud/ddev

socketwench avatar Jul 27 '17 18:07 socketwench