Ошибка: Пакет: pgdg-redhat-repo-42.0-6.noarch (/pgdg-redhat10-10-2.noarch) - Требуется: /etc/redhat-release
Это DockerFile. Проблема на Mac.
Error: Package: pgdg-redhat-repo-42.0-6.noarch (/pgdg-redhat10-10-2.noarch)
Requires: /etc/redhat-release
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
The command '/bin/sh -c yum install -y https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-6-x86_64/pgdg-redhat10-10-2.noarch.rpm' returned a non-zero code: 1
Пожалуйста, проверьте ниже Dockerfile
FROM lambci/lambda:build-ruby2.5
RUN yum install -y \
https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-6-x86_64/pgdg-redhat10-10-2.noarch.rpm
RUN sed -i "s/rhel-\$releasever-\$basearch/rhel-6.9-x86_64/g" "/etc/yum.repos.d/pgdg-10-redhat.repo"
RUN yum install -y postgresql10-devel
RUN gem update bundler
CMD "/bin/bash"
Пожалуйста, предоставьте решения для Mac. Я попробовал все другие похожие вопросы, но ничего не помогло, поэтому опубликовал их снова.