summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyo Nakamura <upa@haeena.net>2024-01-18 13:17:57 +0900
committerRyo Nakamura <upa@haeena.net>2024-01-18 13:17:57 +0900
commit16086ffdb374801bb99724c805341c2dab7b012c (patch)
treeda896a28da9a678d7da96a26bdb72c48aff9ae68
parent9bdbfe84879b6f3d146a22f6f71f5914e6749abc (diff)
import rpm pgp key before yum install in Alama
See https://cloudlinux.zendesk.com/hc/en-us/articles/12225072530204-yum-update-error-Error-GPG-check-FAILED
-rw-r--r--docker/almalinux-8.8.Dockerfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/docker/almalinux-8.8.Dockerfile b/docker/almalinux-8.8.Dockerfile
index 9f17d14..1b440ce 100644
--- a/docker/almalinux-8.8.Dockerfile
+++ b/docker/almalinux-8.8.Dockerfile
@@ -1,7 +1,9 @@
FROM almalinux:8.8
# install pytest, sshd for test, and rpm-build
-RUN set -ex && yum -y install \
+RUN set -ex && \
+ rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux && \
+ yum -y install \
python3 python3-pip python3-devel openssh openssh-server openssh-clients rpm-build
RUN python3 -m pip install pytest