Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Build Issue When Using Ubuntu 18.04 With OPA latest #3

Open
markjbyrne opened this issue Apr 1, 2022 · 1 comment
Open

Docker Build Issue When Using Ubuntu 18.04 With OPA latest #3

markjbyrne opened this issue Apr 1, 2022 · 1 comment

Comments

@markjbyrne
Copy link

Hi,

Since the latest release of OPA (v0.39.0) yesterday the opa-test-action docker build fails with the following error

[+] Building 29.6s (9/9) FINISHED                                                                                                                                                                         
 => [internal] load build definition from Dockerfile                                                                                                                                                 0.0s
 => => transferring dockerfile: 224B                                                                                                                                                                 0.0s
 => [internal] load .dockerignore                                                                                                                                                                    0.0s
 => => transferring context: 2B                                                                                                                                                                      0.0s
 => [internal] load metadata for docker.io/library/ubuntu:18.04                                                                                                                                      2.2s
 => [auth] library/ubuntu:pull token for registry-1.docker.io                                                                                                                                        0.0s
 => [1/5] FROM docker.io/library/ubuntu:18.04@sha256:d8ac28b7bec51664c6b71a9dd1d8f788127ff310b8af30820560973bcfc605a0                                                                                5.2s
 => => resolve docker.io/library/ubuntu:18.04@sha256:d8ac28b7bec51664c6b71a9dd1d8f788127ff310b8af30820560973bcfc605a0                                                                                0.0s
 => => sha256:d8ac28b7bec51664c6b71a9dd1d8f788127ff310b8af30820560973bcfc605a0 1.41kB / 1.41kB                                                                                                       0.0s
 => => sha256:6b26a5e25e3b4d0337997ab73f28c67427d0aa9ff65c0efc1996c576b238502c 529B / 529B                                                                                                           0.0s
 => => sha256:b67d6ac264e4841abb64519b1e85d19873214864b6102939196c8c00ead895ee 1.46kB / 1.46kB                                                                                                       0.0s
 => => sha256:11323ed2c65349758e68a03a8e43825ec263dc9790daea93cf83b18ad0703109 26.71MB / 26.71MB                                                                                                     3.8s
 => => extracting sha256:11323ed2c65349758e68a03a8e43825ec263dc9790daea93cf83b18ad0703109                                                                                                            1.3s
 => [2/5] RUN apt-get update && apt-get install -y curl                                                                                                                                             11.9s
 => [3/5] RUN curl -L -o /opa https://openpolicyagent.org/downloads/latest/opa_linux_amd64                                                                                                           9.4s 
 => [4/5] RUN chmod 755 /opa                                                                                                                                                                         0.5s 
 => ERROR [5/5] RUN /opa version

I tested this locally and it appears to be isolated to ubuntu v18.04. Bumping the version to v20.04 resolves the issue.

 => [internal] load build definition from Dockerfile                                                                                                                                                 0.0s
 => => transferring dockerfile: 224B                                                                                                                                                                 0.0s
 => [internal] load .dockerignore                                                                                                                                                                    0.0s
 => => transferring context: 2B                                                                                                                                                                      0.0s
 => [internal] load metadata for docker.io/library/ubuntu:20.04                                                                                                                                      1.4s
 => [1/5] FROM docker.io/library/ubuntu:20.04@sha256:bea6d19168bbfd6af8d77c2cc3c572114eb5d113e6f422573c93cb605a0e2ffb                                                                                5.5s
 => => resolve docker.io/library/ubuntu:20.04@sha256:bea6d19168bbfd6af8d77c2cc3c572114eb5d113e6f422573c93cb605a0e2ffb                                                                                0.0s
 => => sha256:dcc176d1ab45d154b767be03c703a35fe0df16cfb1cc7ea5dd3b6f9af99b6718 529B / 529B                                                                                                           0.0s
 => => sha256:ff0fea8310f3957d9b1e6ba494f3e4b63cb348c76160c6c15578e65995ffaa87 1.46kB / 1.46kB                                                                                                       0.0s
 => => sha256:4d32b49e2995210e8937f0898327f196d3fcc52486f0be920e8b2d65f150a7ab 28.57MB / 28.57MB                                                                                                     4.1s
 => => sha256:bea6d19168bbfd6af8d77c2cc3c572114eb5d113e6f422573c93cb605a0e2ffb 1.42kB / 1.42kB                                                                                                       0.0s
 => => extracting sha256:4d32b49e2995210e8937f0898327f196d3fcc52486f0be920e8b2d65f150a7ab                                                                                                            1.2s
 => [2/5] RUN apt-get update && apt-get install -y curl                                                                                                                                             10.1s
 => [3/5] RUN curl -L -o /opa https://openpolicyagent.org/downloads/latest/opa_linux_amd64                                                                                                           9.1s
 => [4/5] RUN chmod 755 /opa                                                                                                                                                                         0.5s 
 => [5/5] RUN /opa version                                                                                                                                                                           0.4s 
 => exporting to image                                                                                                                                                                               0.3s
 => => exporting layers                                                                                                                                                                              0.3s
 => => writing image sha256:c46cf70ae2543599e208a53090c534b46c2239d17fa76a4c1b077e8b6834e109                                                                                                         0.0s
 => => naming to docker.io/library/opa-test:latest 

Would you be happy to accept a PR to try and help resolve this?

@markjbyrne
Copy link
Author

Issue does not occur when installing OPA v0.38.1 on ubuntu v18.04

 => [internal] load build definition from Dockerfile                                                                                                                                                 0.0s
 => => transferring dockerfile: 225B                                                                                                                                                                 0.0s
 => [internal] load .dockerignore                                                                                                                                                                    0.0s
 => => transferring context: 2B                                                                                                                                                                      0.0s
 => [internal] load metadata for docker.io/library/ubuntu:18.04                                                                                                                                      1.4s
 => [auth] library/ubuntu:pull token for registry-1.docker.io                                                                                                                                        0.0s
 => [1/5] FROM docker.io/library/ubuntu:18.04@sha256:d8ac28b7bec51664c6b71a9dd1d8f788127ff310b8af30820560973bcfc605a0                                                                                0.0s
 => CACHED [2/5] RUN apt-get update && apt-get install -y curl                                                                                                                                       0.0s
 => [3/5] RUN curl -L -o /opa https://openpolicyagent.org/downloads/v0.38.1/opa_linux_amd64                                                                                                          9.2s
 => [4/5] RUN chmod 755 /opa                                                                                                                                                                         0.4s
 => [5/5] RUN /opa version                                                                                                                                                                           0.3s 
 => exporting to image                                                                                                                                                                               0.3s 
 => => exporting layers                                                                                                                                                                              0.3s 
 => => writing image sha256:f5dd05799c4a33c4f5b2ebc74799cdc681a4978b4b15093dcf66b22d2eb03125                                                                                                         0.0s 
 => => naming to docker.io/library/opa-test:latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant