dotmesh-io / dotmesh

dotmesh (dm) is like git for your data volumes (databases, files etc) in Docker and Kubernetes
https://dotmesh.com
Apache License 2.0
539 stars 29 forks source link

[1d] Install dm client inside dotmesh-server(-inner?) container #670

Closed alaric-dotmesh closed 4 years ago

alaric-dotmesh commented 5 years ago

As a dotmesh dev team, we'd like to be able to easily connect to a dotmesh cluster with dm so we can diagnose broken dotmesh installs - including things like runners, which set dotmesh up so that it's not exposed to the host network.

Currently, to do this on a runner, you need to docker exec into a container attached to the right network, download dm from get.dotmesh.io/unstable/master/Linux/dm, chmod +x it, examine the dotmesh-server-inner container's environment to get the initial admin password, do a dm remote add to get at it... and then you're in. Until the container gets recreated.

However, it wouldn't be too hard to put the dm binary in the dotmesh-server image in root's $PATH, and have require_zfs.sh spit out a working configuration in ~root/.dotmesh/config so we can just exec in and run dm. This would save a fiddly series of steps every time we need to go in and have a look.

ACs

alaric-dotmesh commented 4 years ago

This is now done!