-
Bug
-
Resolution: Done
-
Major
-
quay-v3.2.0
Attempting to use a valid Dockerfile (or archive with valid Dockerfile) to build an image with the "quay-builder:latest" container results in the following error message within the "quay" UI:
Could not find or parse Dockerfile: Empty Dockerfile
The "quay-builder" container shows the following:
time="2020-02-06T16:00:31Z" level=info msg="decoded build args: rpc.BuildArgs{BuildPackage:\"https://containers.example.com/userfiles/cbbf1bc6-e443-4e40-a12d-aea16161d3eb\", Context:\"/\", DockerfilePath:\"Dockerfile\", Repository:\"superuser/test\", Registry:\"containers.example.com\", PullToken:\"REMOVED", PushToken:\"REMOVED", TagNames:[]string{\"latest\"}, Git:(*rpc.BuildArgsGit)(nil), BaseImage:rpc.BuildArgsBaseImage{Username:\"\", Password:\"\"}}" time="2020-02-06T16:00:31Z" level=info msg="connecting to docker host: unix:///var/run/docker.sock" time="2020-02-06T16:00:31Z" level=info msg="connected to docker host: unix:///var/run/docker.sock" time="2020-02-06T16:00:31Z" level=info msg="downloading buildpack: https://containers.example.com/userfiles/cbbf1bc6-e443-4e40-a12d-aea16161d3eb" time="2020-02-06T16:00:31Z" level=info msg="buildpack identified as plain" time="2020-02-06T16:00:31Z" level=error msg="Could not parse Dockerfile: file with no instructions." time="2020-02-06T16:00:31Z" level=info msg="build resulted in an error: Empty Dockerfile" time="2020-02-06T16:00:31Z" level=info msg="determined final WAMP response URI for error (type: rpc.InvalidDockerfileError) 'Empty Dockerfile': io.quay.builder.dockerfileissue"
The Dockerfile that I'm using is https://github.com/quay/quay/blob/master/Dockerfile . I've also tried several other valid Dockerfiles with the same result. The above file does exist and contains the contents of the Dockerfile that was uploaded via the UI.
The docker host is CentOS 7.7 running both containers and is not behind an LB. The Quay config is very basic, but uses AWS hosted Postgres RDS and Redis. I've attached the Quay config file to this issue.