@@ -4,16 +4,26 @@ FROM centos:centos8
44LABEL mapr.os=centos8
55ENV container docker
66
7+ # Download keys
8+ WORKDIR /tmp
9+ RUN curl --user "<email>:<token>" -o /tmp/maprgpg.key -q https://package.ezmeral.hpe.com/releases/pub/maprgpg.key; \
10+ curl --user "<email>:<token>" -o /tmp/gnugpg.key -q https://package.ezmeral.hpe.com/releases/pub/gnugpg.key; \
11+ curl --user "<email>:<token>" -o /tmp/hpeezdf.pub -q https://package.ezmeral.hpe.com/releases/pub/hpeezdf.pub;
12+
713# Setup repos and dl prereqs + Mapr Core
814COPY mapr.repo /etc/yum.repos.d/
915RUN rpm --import http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8; \
10- rpm --import https://package.mapr.com/releases/pub/maprgpg.key; \
11- rpm --import https://package.mapr.com/releases/pub/gnugpg.key; \
16+ rpm --import /tmp/gnugpg.key; \
17+ rpm --import /tmp/hpeezdf.pub; \
18+ rpm --import /tmp/maprgpg.key; \
19+ rm -rf /tmp/*.key /tmp/*.pub; \
1220 yum -y update && yum -y clean all; \
1321 yum -y install epel-release; \
14- sed -i 's/^mirror/#mirror/g' /etc/yum.repos.d/epel.repo; \
22+ sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*; \
23+ sed -i 's/^#baseurl/baseurl/g' /etc/yum.repos.d/CentOS-*; \
24+ sed -i 's/mirror.centos.org/vault.centos.org/g' /etc/yum.repos.d/CentOS-*; \
1525 yum install -y mapr-client mapr-posix-client-basic mapr-posix-client-platinum && \
16- yum -y update && yum clean all && rm -rf /var/cache/yum; \
26+ yum clean all && rm -rf /var/cache/yum; \
1727 mkdir -p /opt/mapr/lib/fusebasic /opt/mapr/lib/fuseplatinum; \
1828 cp /opt/mapr/lib/libMapRClient_c.so.1 /opt/mapr/lib/fusebasic/libMapRClient_c.so.0; \
1929 rm -rf /opt/mapr/lib/libMapRClient_c.so.1
0 commit comments