5 ms·
Hmm, doesn't that connect your local Docker client to the remote Docker daemon? My goal isn't "don't SSH to the machine" specifically, but "don't have state on
by stavros 5y ago
Hmm, doesn't that connect your local Docker client to the remote Docker daemon? My goal isn't "don't SSH to the machine" specifically, but "don't have state on the machine that isn't tracked in a repo somewhere", and this seems like it would fail that requirement.
- mixedCase 5y agoHave you tried NixOS?
- stavros 5y agoI have, and it's really good, but it needs some investment in creating packages (if they don't exist) and has some annoyances (eg you can't talk to the network to preserve determinism). It felt a bit too heavy-handed for a few processes. We also used to use it at work extensively for all our production but migrated off it after various difficulties (not bugs, just things like having its own language).
- mixedCase 5y agoYou can talk to the network, either through the escape hatch or provided fetch utilities, which tend to require checksums. But you do have to keep the result deterministic. Agreed on it being a bit too heavy-handed, and the tooling isn't very helpful for dealing with it unless you're neck-deep into the ecosystem already.
- inetknght 5y agoWhat do you think isn't getting tracked? You could put your SSH server configuration in a repo. You could put your SSH authorization key in a repo. You could even put your private key in a repo if you really wanted.
- stavros 5y agoHow do you track what's supposed to run and what's not, for example? Or the environment variables, or anything else you can set through the cli.
- electroly 5y agoDocker Compose is designed for this.
- stavros 5y agoYep, that's why Harbormaster uses it.
- hckr1292 5y agoThe killer feature of harbormaster is watching the remote repository. Can docker-compose do that? If it can, I should just leverage that feature instead of harbormaster! The nicety here on harbormaster seems to be that there are some ways to use the same code as a template in which specific differences are dynamically inserted by harbormaster. I'm not aware of how you could use docker-compose (without swarm) to accomplish this, unless you start doing a lot of bash stuff. I also appreciate that harbormaster offers opinions on secrets management.
- gibs0ns 5y agoFor me, I don't define any variables via the cli, i put them all in the docker-compose.yml or accompanying .env file, that way it's a simple `docker-compose up` to deploy. Then I can track these files via git, and deploy to remote docker hosts using docker-machine, which effectively sets the DOCKER_HOST env var. While I haven't used it personally, there is [0] Watchtower which aims to automate updating docker containers. [0] https://github.com/containrrr/watchtower https://github.com/containrrr/watchtower
- inetknght 5y agoWhat do you mean? You run what's supposed to run the same way you would anything else. It's the same for the environment variables. How would you track what's supposed to run and what's not for Docker? Using the `DOCKER_HOST` environment variable to connect over SSH is the exact same way.
- nanis 5y ago> "don't have state on the machine that isn't tracked in a repo somewhere" https://docs.chef.io/chef_solo/ https://docs.chef.io/chef_solo/
- revscat 5y ago> chef-solo is a command that executes Chef Infra Client in a way that does not require the Chef Infra Server in order to converge cookbooks. I have never used Chef. This is babble to me.
- nanis 5y ago> Chef Infra is a powerful automation platform that transforms infrastructure into code. Whether you’re operating in the cloud, on-premises, or in a hybrid environment, Chef Infra automates how infrastructure is configured, deployed, and managed across your network, no matter its size. In an imprecise nutshell: You specify what needs to exist on the target system using Chef's DSL and Chef client will converge the state of the target to the desired one.
- redis_mlc 5y agoNormally the chef server listener is on a remote machine. But there's another way to run the chef server locally, called chef solo, which developers commonly use when writing cookbooks and recipes. Chef is one of the most complicated devops tools ever, so don't expect to understand it without effort.
- tremon 5y agochef-solo is a command that applies configuration statements on a host without using a separate metadata server.
- geofft 5y agoChef is a configuration management system. It lets you define lists of things to do called "cookbooks" (analogous to Ansible "playbooks" etc.). To "converge" is to run something until it is stable. This terminology, I think, comes from the early configuration managemnt system CFEngine, where you write your configuration in declarative(-ish) "make it so this is true" steps, instead of imperative "perform this change" steps the way that a shell script would do. See e.g. https://www.usenix.org/legacy/publications/library/proceedings/lisa2000/full_papers/burgess/burgess_html/index.html https://www.usenix.org/legacy/publications/library/proceedin... chef-solo is a command that executes Chef's client - the thing that actually makes configuration changes, that is to say, "converges cookbooks" - in a way that does not require a server component. The normal way of deploying Chef is that a server runs things on clients, the machines being configured, but chef-solo is appropriate for the case where there is no such distinction and there's just one machine where you wish to run Chef.