fixing pacman error caused by signature verify

fixing error: libinih: signature from "Maxime Gauduin <alucryd@gmail.com>" is marginal trust
This commit is contained in:
Syahrul Akbar Rohmani 2022-05-01 12:03:27 +07:00 committed by GitHub
parent 55293cbb6c
commit 0c47473292
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'