Skip to content

Commit 85db584

Browse files
authored
Development: pull down latest Docker images (#181)
* Development: pull down latest Docker images We are not using `latest`, `stable` and `testing` anymore. We are only using Ubuntu images. Download only those 2. * Development: pull down only required Docker images
1 parent 96be958 commit 85db584

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

dockerfiles/tasks.py

+5-11
Original file line numberDiff line numberDiff line change
@@ -138,21 +138,15 @@ def restart(c, containers):
138138
c.run(f'{DOCKER_COMPOSE_COMMAND} restart nginx', pty=True)
139139
break
140140

141-
@task(help={
142-
'only_required': 'Only pull the required image (used by default for clonning). Use it if you don\'t need all images (default: False)',
143-
})
144-
def pull(c, only_required=False):
141+
@task()
142+
def pull(c):
145143
"""Pull all docker images required for build servers."""
146144
images = [
145+
# TODO: remove Ubuntu 20.04 once we start cloning with Ubuntu 22.04
146+
# https://github.com/readthedocs/readthedocs.org/blob/c166379bfe48d6757920848bbd49286057b945c1/readthedocs/doc_builder/director.py#L138-L140
147147
('ubuntu-20.04-2022.02.16', 'ubuntu-20.04'),
148+
('ubuntu-22.04-2023.03.09', 'ubuntu-22.04'),
148149
]
149-
if not only_required:
150-
images.extend([
151-
('6.0', 'stable'),
152-
('7.0', 'latest'),
153-
('8.0', 'testing'),
154-
('ubuntu-22.04-2022.03.15', 'ubuntu-22.04'),
155-
])
156150
for image, tag in images:
157151
c.run(f'docker pull readthedocs/build:{image}', pty=True)
158152
c.run(f'docker tag readthedocs/build:{image} readthedocs/build:{tag}', pty=True)

0 commit comments

Comments
 (0)