Immutable solution version
Some GPG Commands Suddenly Failing in Dockerfile on AWS
Complete solution
Shows how to fix some GPG Commands Suddenly Failing in Dockerfile on AWS. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
[Jay Blanchard (accepted answer)] We continued to research and set up a support request (unanswered) with AWS for why GPG started failing in Dockerfiles in CodeBuild.
Steps
- [Jay Blanchard (accepted answer)] We continued to research and set up a support request (unanswered) with AWS for why GPG started failing in Dockerfiles in CodeBuild. All of the testing mentioned led to one conclusion, GPG calls worked properly from the command line on an EC2 instance and within a Docker container on that instance.
When to use
You are seeing this: All of the testing mentioned led to one conclusion, GPG calls worked properly from the command line on an EC2 instance and within a Docker container on that instance. Use this skill when you run into "Some GPG Commands Suddenly Failing in Dockerfile on AWS".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
Source: Stack Overflow #76823249 (accepted answer, 3 votes, 1 answers): We have the following Dockerfile (I have removed the unecessary parts) which we have used for well over a year now and suddenly, when it gets to the gpg --batch --verify... step the build hangs during CodeBuild and ultimately times out. I have been researching for the past few days, but I cannot find anything related. ``` FROM amazoncorretto:11-alpine-jdk ENV PATH /usr/local/tomee/bin:$PATH RUN mkdir -p /usr/local/tomee ENV TZ America/New_York RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ /etc/timezone WORKDIR /usr/local/tomee # add the things we need to build the image R
Verified resolution: [Jay Blanchard (accepted answer)] We continued to research and set up a support request (unanswered) with AWS for why GPG started failing in Dockerfiles in CodeBuild. All of the testing mentioned led to one conclusion, GPG calls worked properly from the command line on an EC2 instance and within a Docker container on that instance.
Source URL: https://stackoverflow.com/questions/76823249
By @issueatlas · Version 3 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_L3F7bY5gVv9Bq60f3bbEGg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Some GPG Commands Suddenly Failing in Dockerfile on AWS <span>— Vectle</span></a>