Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #804 from mediacloud/docker_compose_lock_version
Browse files Browse the repository at this point in the history
Lock Docker Python module's and docker-compose's versions
  • Loading branch information
pypt authored Aug 17, 2021
2 parents 26c458f + b83625d commit f32b21b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
7 changes: 3 additions & 4 deletions provision/roles/docker/tasks/dockerd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@
state: present
install_recommends: false

# Workaround to enable --allow-downgrades
# (systems that are being deployed to might have a newer version(s) installed)
# Workaround to enable --allow-downgrades / --allow-upgrades
force: true
force_apt_get: true

Expand Down Expand Up @@ -191,7 +190,7 @@
# For Ansible to be able to manage Docker swarms and such
- name: "Install 'docker' Python module"
pip:
name: docker==3.7.3
name: "docker=={{ docker_python_module_version }}"
state: present
executable: /usr/bin/pip3
become: true
Expand All @@ -202,7 +201,7 @@

- name: Install docker-compose
pip:
name: docker-compose>=1.22.0
name: "docker-compose=={{ docker_compose_version }}"
state: present
executable: /usr/bin/pip3
become: true
Expand Down
12 changes: 12 additions & 0 deletions provision/roles/docker/vars/dockerd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@
docker_version: "20.10.8"
containerd_io_version: "1.4.9-1"

# Docker Python module, needed by Ansible:
#
# https://pypi.org/project/docker/#history
#
docker_python_module_version: "5.0.0"

# Docker Compose:
#
# https://pypi.org/project/docker-compose/#history
#
docker_compose_version: "1.29.2"

#
# Docker daemon configuration
#
Expand Down

0 comments on commit f32b21b

Please sign in to comment.