Skip to content

Commit

Permalink
Opt-out of Phased Updates in apt in CI jobs (#969)
Browse files Browse the repository at this point in the history
  • Loading branch information
cottsay authored Aug 1, 2022
1 parent 1fa6816 commit 00fc66b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ros_buildfarm/templates/ci/ci_create_tasks.Dockerfile.em
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ VOLUME ["/var/cache/apt/archives"]

ENV DEBIAN_FRONTEND noninteractive

@(TEMPLATE('snippet/phased_updates.Dockerfile.em'))@

@(TEMPLATE(
'snippet/setup_locale.Dockerfile.em',
timezone=timezone,
Expand Down
2 changes: 2 additions & 0 deletions ros_buildfarm/templates/ci/create_workspace.Dockerfile.em
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ VOLUME ["/var/cache/apt/archives"]

ENV DEBIAN_FRONTEND noninteractive

@(TEMPLATE('snippet/phased_updates.Dockerfile.em'))@

@(TEMPLATE(
'snippet/old_release_set.Dockerfile.em',
os_name=os_name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ VOLUME ["/var/cache/apt/archives"]

ENV DEBIAN_FRONTEND noninteractive

@(TEMPLATE('snippet/phased_updates.Dockerfile.em'))@

@(TEMPLATE(
'snippet/setup_locale.Dockerfile.em',
timezone=timezone,
Expand Down
2 changes: 2 additions & 0 deletions ros_buildfarm/templates/devel/devel_task.Dockerfile.em
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ VOLUME ["/var/cache/apt/archives"]

ENV DEBIAN_FRONTEND noninteractive

@(TEMPLATE('snippet/phased_updates.Dockerfile.em'))@

@(TEMPLATE(
'snippet/old_release_set.Dockerfile.em',
os_name=os_name,
Expand Down
3 changes: 3 additions & 0 deletions ros_buildfarm/templates/snippet/phased_updates.Dockerfile.em
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Opt-out of phased updates, which can create inconsistencies between installed package versions as different containers end up on different phases.
# https://wiki.ubuntu.com/PhasedUpdates
RUN echo 'APT::Get::Never-Include-Phased-Updates "true";' > /etc/apt/apt.conf.d/90-phased-updates

0 comments on commit 00fc66b

Please sign in to comment.