Post AcJ3SavxKQddopShvs by gilles@toot.gagniard.org
(DIR) More posts by gilles@toot.gagniard.org
(DIR) Post #AcIGdSYDwMILFeue9I by noim@noc.social
2023-11-29T08:53:47Z
0 likes, 0 repeats
A question for all #CI and #Docker people. What is your preferred way to deploy docker containers on a standalone #linux host via a CI task. Do you use ssh and run commands on the target host? Or do you use a ssh tunnel to connect to the daemon? Or do you even expose the docker daemon and directly connect to it? Or is there a better way?
(DIR) Post #AcIH76mzPmDIRhxOLI by abeltramo@mastodon.social
2023-11-29T08:58:57Z
0 likes, 0 repeats
@noim Ansible! The nice thing about it is that not only you can deploy a container but it can automatically setup the host if it's missing Docker or any other required package.
(DIR) Post #AcIIoENr9azUPGKM5o by gilles@toot.gagniard.org
2023-11-29T09:18:01Z
0 likes, 0 repeats
@noim I'm using #ansible to deploy and manage my containers running on #podman, but there is also a docker collection available: https://docs.ansible.com/ansible/latest/collections/community/docker/index.html
(DIR) Post #AcIMBC3GI4kHhEKqjg by noim@noc.social
2023-11-29T09:55:56Z
0 likes, 0 repeats
@gilles Now I am a bit disappointed. The ansible docker collection is stuck at using the python version of docker compose. This means, it doesn’t support docker compose version 3 and above. I am pretty sure the python compose is EOL.
(DIR) Post #AcJ3SavxKQddopShvs by gilles@toot.gagniard.org
2023-11-29T18:00:44Z
0 likes, 0 repeats
@noim Ansible playbooks make it easy to orchestrate the creation of multiple containers and therefore covering Docker Compose use cases. It's indeed possible that the backward compatibility with compose is a bit neglected.Personally I've moved on to podman pods and containers managed through ansible playbooks a while back and I'm mostly satisfied with it !