From 0c47473292e9b51f5d5000762e1a862e6a31f80e Mon Sep 17 00:00:00 2001 From: Syahrul Akbar Rohmani Date: Sun, 1 May 2022 12:03:27 +0700 Subject: [PATCH] fixing pacman error caused by signature verify fixing error: libinih: signature from "Maxime Gauduin " is marginal trust --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index f28924e..e3fcd22 100644 --- a/Dockerfile +++ b/Dockerfile @@ -155,11 +155,17 @@ RUN make \ ARG LINUX=true +# Some package signature are invalid/expired, need to disable signature checking +RUN sudo sed -i 's/SigLevel = Required DatabaseOptional/SigLevel = Never/g' /etc/pacman.conf + # required to use libguestfs inside a docker container, to create bootdisks for docker-osx on-the-fly RUN if [[ "${LINUX}" == true ]]; then \ sudo pacman -Syu linux libguestfs --noconfirm \ ; fi +# Restoring pacman conf +sed -i 's/SigLevel = Never/SigLevel = Required DatabaseOptional/g' /etc/pacman.conf + # optional --build-arg to change branches for testing ARG BRANCH=master ARG REPO='https://github.com/sickcodes/Docker-OSX.git'