ambakshi / docker-perforce

Docker Perforce Images (p4d, perforce-swarm, git-fusion, sample depot, and a base image)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Errno -1] repomd.xml does not match metalink for epel Trying other mirror.

yanghansyuan opened this issue · comments

Hi,
I try to build docker for the perforce-server nad got the error when determining fastest mirrors:

http://fedora.cs.nctu.edu.tw/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel
Trying other mirror.

The command '/bin/sh -c yum clean all --enablerepo='' && yum clean metadata --enablerepo='' && yum install --enablerepo=perforce -y helix-p4d-20${P4_VERSION} helix-cli-20${P4_VERSION} && yum clean all --enablerepo='*' && rm -rf /var/cache/yum' returned a non-zero code: 1

How do I fix this? I'm using Mac. Thank you

commented

On my computer I didn't have the env var P4_VERSION set.

I replaced the line

&& yum install --enablerepo=perforce -y helix-p4d-20${P4_VERSION} helix-cli-20${P4_VERSION} \
with
&& yum install --enablerepo=perforce -y helix-p4d-2019.1 helix-cli-2019.1 \

and then it worked.

Thank you. It works!

The Makefile sets it. So either you need to use make or as @Laughlete mentioned, set the env var.