From ec3295ffd4fcc9961604bf366f3c8d3f14b40d6d Mon Sep 17 00:00:00 2001 From: Kevin Morris Date: Sat, 15 Jan 2022 15:16:39 -0800 Subject: [PATCH] fix(docker): update archlinux-keyring prior to -Syu When the Docker image is outdated, we need to fetch updated archlinux-keyring keys to perform an -Syu without problems. Signed-off-by: Kevin Morris --- docker/scripts/install-deps.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/docker/scripts/install-deps.sh b/docker/scripts/install-deps.sh index f55cfa3b..1d8815b1 100755 --- a/docker/scripts/install-deps.sh +++ b/docker/scripts/install-deps.sh @@ -4,11 +4,17 @@ # robust development ecosystem. set -eou pipefail +# Update and rollout archlinux-keyring keys. +pacman-key --init +pacman-key --updatedb +pacman-key --populate + +# Install other OS dependencies. pacman -Syu --noconfirm --noprogressbar \ --cachedir .pkg-cache git gpgme nginx redis openssh \ - mariadb mariadb-libs cgit-aurweb uwsgi uwsgi-plugin-cgi \ - php php-fpm memcached php-memcached python-pip pyalpm \ - python-srcinfo curl libeatmydata cronie python-poetry \ - python-poetry-core step-cli step-ca asciidoc + mariadb mariadb-libs cgit-aurweb uwsgi uwsgi-plugin-cgi \ + php php-fpm memcached php-memcached python-pip pyalpm \ + python-srcinfo curl libeatmydata cronie python-poetry \ + python-poetry-core step-cli step-ca asciidoc exec "$@"