Skip to content

Commit

Permalink
fix: do not fail on apt-get update for extra packages, for #5620 (#…
Browse files Browse the repository at this point in the history
…5623) [skip ci]
  • Loading branch information
stasadev committed Dec 13, 2023
1 parent 4580ec2 commit 64e9958
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/ddevapp/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1085,8 +1085,7 @@ RUN (groupadd --gid $gid "$username" || groupadd "$username" || true) && (userad
if extraPackages != nil {
contents = contents + `
### DDEV-injected from webimage_extra_packages or dbimage_extra_packages
RUN echo "Disk usage problems: " && df -h /tmp && ls -l /var/lib/apt/lists
RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -qq install -y -o Dpkg::Options::="--force-confold" --no-install-recommends --no-install-suggests ` + strings.Join(extraPackages, " ") + "\n"
RUN (apt-get -qq update || true) && DEBIAN_FRONTEND=noninteractive apt-get -qq install -y -o Dpkg::Options::="--force-confold" --no-install-recommends --no-install-suggests ` + strings.Join(extraPackages, " ") + "\n"
}

// For webimage, update to latest Composer.
Expand Down

0 comments on commit 64e9958

Please sign in to comment.