Recently I was dealing quite a bit with our provisioner and while it is great as is, there are still some ways we can improve both its complexity (for better maintenance), and UX for the users.
Namely, I suggest we get rid of the ssh support for the docker provisioner.
Instead, connecting to the container could be done via docker exec, which
seems to be faster. There are at least two benefits in this:
- for a user to log into a container, you won't have to change directory to
run 'vagrant ssh bigtop1'. A user won't be even exposed to the vagrant.
Instead, we can hook up the aforementioned exec to gradle so when
./gradlew provisioner-attach bigtop1
is ran, we will first figure out the full name of the container, which
include 'bigtop1' substring; then run the exec command interactively.
- similarly, the deployment would be less complex, as puppet commands will be
ran directly without piping them into 'vagrant ssh ...'
Thoughts?
Cos
signature.asc
Description: Digital signature
