Skip to content

Error during Docker build #4

Open
@ejstembler

Description

@ejstembler

Getting this error during Docker build:

Error: Package: pgdg-redhat-repo-42.0-5.noarch (/pgdg-redhat10-10-2.noarch)
           Requires: /etc/redhat-release

Here's the full output:

docker build -t lambda-ruby2.5-postgresql10 .
Sending build context to Docker daemon  10.75kB
Step 1/6 : FROM lambci/lambda:build-ruby2.5
build-ruby2.5: Pulling from lambci/lambda
c10bc2510050: Pull complete 
fa535c6d8b41: Pull complete 
b17a5543c497: Pull complete 
ff5b96d65dff: Pull complete 
Digest: sha256:eb71bf94bc332928bdfd66868107cce7cbdf9ba9c361ce2d9e042352244d5a80
Status: Downloaded newer image for lambci/lambda:build-ruby2.5
 ---> 807020d3e4f6
Step 2/6 : RUN yum install -y     https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-6-x86_64/pgdg-redhat10-10-2.noarch.rpm
 ---> Running in b8f25f6964f0
Loaded plugins: ovl, priorities
Examining /var/tmp/yum-root-mDWiCr/pgdg-redhat10-10-2.noarch.rpm: pgdg-redhat-repo-42.0-5.noarch
Marking /var/tmp/yum-root-mDWiCr/pgdg-redhat10-10-2.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package pgdg-redhat-repo.noarch 0:42.0-5 will be installed
--> Processing Dependency: /etc/redhat-release for package: pgdg-redhat-repo-42.0-5.noarch
--> Processing Dependency: /etc/redhat-release for package: pgdg-redhat-repo-42.0-5.noarch
--> Finished Dependency Resolution
 You could try using --skip-broken to work around the problem
Error: Package: pgdg-redhat-repo-42.0-5.noarch (/pgdg-redhat10-10-2.noarch)
           Requires: /etc/redhat-release
 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions