feat(docker): add reusable role to install Docker Engine + Compose plugin#29
Open
0cwa wants to merge 1 commit into
Open
feat(docker): add reusable role to install Docker Engine + Compose plugin#290cwa wants to merge 1 commit into
0cwa wants to merge 1 commit into
Conversation
…ugin Adds roles/docker, a generic role that installs the upstream Docker apt repository and the v2 'docker compose' plugin. No playbook references it yet -- it is consumed by the upcoming funkwhale role and is intentionally generic so any future containerised service can reuse it. Highlights: - pulls Docker's official GPG key into /etc/apt/keyrings - installs docker-ce + cli + containerd.io + buildx + compose plugin - exposes docker_group_users so the funkwhale service user can run docker without sudo Verified with: yamllint -c .yamllint.yaml .
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a generic, reusable role that installs Docker Engine + the v2
docker composeplugin from Docker's upstream apt repository.Why
First consumer is
feat/funkwhale-core, but the role is intentionally generic — any future containerised service (e.g. PeerTube, Mobilizon, an internal tool) canroles: [docker]and get the same toolchain.What it does
/etc/apt/keyringsdownload.docker.comapt sourcedocker-ce,docker-ce-cli,containerd.io,docker-buildx-plugin,docker-compose-plugindocker_group_usersso a service user (e.g.funkwhale) can rundockerwithout sudoVerified with
yamllint -c .yamllint.yaml roles/docker ansible-lint --profile safety roles/docker # passes; production also passesStacking
Independent of
fix/matrix-playbook-syntaxandchore/ci-lint; can land at any point.feat/funkwhale-coredepends on this.